Hi Guys,
Please help me out. I am new to solaris. I am using solaris 10
___________________________________________________________
public class Filecheck{
public static void main\(String[] args\) \{
System.out.println\("LD\_LIBRARY_PATH is : "\+System.getProperty\("java.library.path"\)\);
System.loadLibrary\("License"\);
\}
____________________________________________________________
When i execute the java program above i get the following error.
LD_LIBRARY_PATH is : /usr/jdk/instances/jdk1.5.0/jre/lib/sparc/server:/usr/jdk/instances/jdk1.5.0/jre/lib/sparc:/usr/jdk/instances/jdk1.5.0/jre/../lib/sparc::/export/home/emsadmin/joshua/:/usr/lib
Exception in thread "main" java.lang.UnsatisfiedLinkError: /export/home/emsadmin/joshua/libLicense.so: ld.so.1: java: fatal: libssl.so.0.9.8: open failed: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)
at java.lang.Runtime.loadLibrary0(Runtime.java:822)
at java.lang.System.loadLibrary(System.java:992)
at Filecheck.main(Filecheck.java:10)
I have set my LD_LIBRARY_PATH variable which points correctly to the library file "libLicense.so".
It seems the library libssl.so.0.9.8 is not present.
When i checked in the directory /usr/local/ssl/lib i could see the file "libssl.so.0.9.7" but the file "libssl.so.0.9.8" is not present.
What might be the reason. Where can i get the library "libssl.so.0.9.8". Or can i make my program use the library libssl.so.0.9.7.
Can some one clearly explain me why is it my java program by default trying to use libssl.so.0.9.8 when libssl.so.0.9.7 is present.
Thanks in advance,
Joshua