UnsatisfiedLinkError: Can't load library: /i2k/rxs/java/j2sdk1.4.2/jre/lib/sparc/motif12/libmawt.so

I hava a Java app running well on a Sun 'sun-fire-280r' running Solaris 2.8 in 64bit mode and Oracle 8.1.7. I need to run it on several other machines, one being a Sun 'ultra-80' running Solaris 2.6 and Oracle 8.0.6. The app runs well under the 2.8 box with Java 1.4.2, but errors loading the below shared library. I can make my LD_LIBRARY_PATH the same for the failing machine as it is on the good machine. I can change my LD_LIBRARY_PATH to point to the location of libmawt.so and still fails. I brought in the latest 1.4.2_3 and reloaded for this machine only and still fails. Anyone with ideas why I can't load this shared library?

Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't load library: /i2k/rxs/java/j2sdk1.4.2/jre/lib/sparc/motif12/libmawt.so
      at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1459)
      at java.lang.Runtime.load0(Runtime.java:737)
      at java.lang.System.load(System.java:811)
      at java.lang.ClassLoader$NativeLibrary.load(Native Method)
      at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1560)
      at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1477)
      at java.lang.Runtime.loadLibrary0(Runtime.java:788)
      at java.lang.System.loadLibrary(System.java:834)
      at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.awt.NativeLibLoader.loadLibraries(NativeLibLoader.java:38)
      at sun.awt.DebugHelper.<clinit>(DebugHelper.java:29)
      at java.awt.Component.<clinit>(Component.java:506)
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

rayskeltonAuthor Commented:
The failing box is the Sun 'ultra-80'  2.6 box.
If everything is in the same place on each machine, did you build the binaries *for* each machine?
...and by extension, *on* each machine?
OWASP: Avoiding Hacker Tricks

Learn to build secure applications from the mindset of the hacker and avoid being exploited.

Mick BarryJava DeveloperCommented:
> /i2k/rxs/java/j2sdk1.4.2/jre/lib/sparc/motif12/libmawt.so

does that file exist?
rayskeltonAuthor Commented:
I downloaded the .sh file, which I assume unzip and untared the binaries. This has worked well on other machines.
Mick BarryJava DeveloperCommented:

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rayskeltonAuthor Commented:
The file in this path below does not exist, bit it does exist in the motif21 directory. I changed my LD_LIBRARY_PATH to point to the location of the file.

If you didn't compile the binaries yourself, are you sure that they are binarily compatible with the OS?
Mick BarryJava DeveloperCommented:
1.4.2 is not supported on 2.6.
rayskeltonAuthor Commented:
according to the listed above articles 2.6 does not support 1.4.1 or 1.4.2. With that in mind do I need to spend the time building new objects?
>>With that in mind do I need to spend the time building new objects?

Mick BarryJava DeveloperCommented:
Sorry we couldn't give you a 'happier' answer.

rayskeltonAuthor Commented:

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.