rayskelton
asked on
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.UnsatisfiedLinkE rror: Can't load library: /i2k/rxs/java/j2sdk1.4.2/j re/lib/spa rc/motif12 /libmawt.s o
at java.lang.ClassLoader.load Library(Cl assLoader. java:1459)
at java.lang.Runtime.load0(Ru ntime.java :737)
at java.lang.System.load(Syst em.java:81 1)
at java.lang.ClassLoader$Nati veLibrary. load(Nativ e Method)
at java.lang.ClassLoader.load Library0(C lassLoader .java:1560 )
at java.lang.ClassLoader.load Library(Cl assLoader. java:1477)
at java.lang.Runtime.loadLibr ary0(Runti me.java:78 8)
at java.lang.System.loadLibra ry(System. java:834)
at sun.security.action.LoadLi braryActio n.run(Load LibraryAct ion.java:5 0)
at java.security.AccessContro ller.doPri vileged(Na tive Method)
at sun.awt.NativeLibLoader.lo adLibrarie s(NativeLi bLoader.ja va:38)
at sun.awt.DebugHelper.<clini t>(DebugHe lper.java: 29)
at java.awt.Component.<clinit >(Componen t.java:506 )
--------------------------
Exception in thread "main" java.lang.UnsatisfiedLinkE
at java.lang.ClassLoader.load
at java.lang.Runtime.load0(Ru
at java.lang.System.load(Syst
at java.lang.ClassLoader$Nati
at java.lang.ClassLoader.load
at java.lang.ClassLoader.load
at java.lang.Runtime.loadLibr
at java.lang.System.loadLibra
at sun.security.action.LoadLi
at java.security.AccessContro
at sun.awt.NativeLibLoader.lo
at sun.awt.DebugHelper.<clini
at java.awt.Component.<clinit
If everything is in the same place on each machine, did you build the binaries *for* each machine?
...and by extension, *on* each machine?
> /i2k/rxs/java/j2sdk1.4.2/j re/lib/spa rc/motif12 /libmawt.s o
does that file exist?
does that file exist?
ASKER
I downloaded the .sh file, which I assume unzip and untared the binaries. This has worked well on other machines.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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.
/i2k/rxs/java/j2sdk1.4.2/j re/lib/spa rc/motif12 /libmawt.s o
/i2k/rxs/java/j2sdk1.4.2/j
If you didn't compile the binaries yourself, are you sure that they are binarily compatible with the OS?
1.4.2 is not supported on 2.6.
ASKER
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?
No
No
ASKER
CEHJ & OBJEST
Thanks
Thanks
ASKER