libawt.so: UnsatisfiedLinkError. Please help!
Hi!
Thanks in advance for the help!
I am new to the Linux OS and would appreciate help solving this critical issue I am having.
The server configuration is:
AMD Opteron 170, Redhat EL 4.0-U3-64-ES, Tomcat 5.0.28, apache httpd 2.0.52 and java sdk 1.4.2_12
The problem occurs when I call the 揑mageIO.read(newPic)? The following exception is thrown:
java.lang.UnsatisfiedLinkError: /usr/java/j2sdk1.4.2_12/jre/lib/i386/libawt.so:
libXp.so.6: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1586)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1503)
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 java.awt.image.ColorModel.loadLibraries(ColorModel.java:188)
at java.awt.image.ColorModel.(ColorModel.java:196)
at javax.imageio.ImageTypeSpecifier$Packed.(ImageTypeSpecifier.jav
a:275)
It seems like libawt.so is not linked correctly.
]#ldd /usr/java/j2sdk1.4.2_12/jre/lib/i386/libawt.so
linux-gate.so.1 => (0xffffe000)
libmlib_image.so (0xf7ce2000)
libjvm.so => not found
libXp.so.6 => not found
libXt.so.6 => not found
libXext.so.6 => not found
libXtst.so.6 => not found
libX11.so.6 => not found
libm.so.6 => /lib/tls/libm.so.6 (0xf7cb3000)
libdl.so.2 => /lib/libdl.so.2 (0xf7caf000)
libjava.so (0xf7c91000)
libc.so.6 => /lib/tls/libc.so.6 (0xf7b66000)
/lib/ld-linux.so.2 (0x56555000)
libjvm.so => not found
libjvm.so => not found
libverify.so (0xf7b57000)
libnsl.so.1 => /lib/libnsl.so.1 (0xf7b41000)
libjvm.so => not found
However, the libXt.so.6 and others ARE on the server already (in /usr/X11R6/lib64). But it does not work. My initial guess is that Java is looking for the 32bit version of the library (maybe in /usr/X11R6/lib). I tried installing the Blackdown Java for x48_64, but same thing. Also set the LD_LIBRARY_PATH, ld.conf.so?still no luck?

