Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

javax.servlet.ServletException: /opt/CSCOar/lib/libarapi.so: libstdc++.so.6

843829Dec 15 2006
Hi all,

I faced the following issues while calling the JNI library from Struts Action Class.
Initially got the following exception -
java.lang.UnsatisfiedLinkError: no arapi in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
at java.lang.Runtime.loadLibrary0(Runtime.java:822)
at java.lang.System.loadLibrary(System.java:992)
at com.cisco.ar.api.ARAPINativeImpl.<init>(ARAPINativeImpl.java:44)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at com.cisco.ar.api.ARAPI.<init>(ARAPI.java:191)

After setting the required "so" files in the LD_LIBRARY_PATH, I got the following exception -
java.lang.UnsatisfiedLinkError: /opt/CSCOar/lib/libarapi.so: Can't load IA 32-bit .so on a IA 32-bit platform

I seached the java forums and found that the issue could be coz of JDK. So, I reverted my JDK 1.5 Update 10 to JDK 1.5 Update 7 and again got another exception as follows-
javax.servlet.ServletException: /opt/CSCOar/lib/libarapi.so: libstdc++.so.6: cannot open shared object file: No such file or directory

So, I am unable to call the JNI. Please let me know if I am missing anything in environment settings. Please help to resolve this.

TIA,
Deepa
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 12 2007
Added on Dec 15 2006
0 comments
197 views