B
Bala
Hello,
I am programming using JNI to call a method from a c static library.
I created the shared library for this purpose and the necessary
compilations.
Now, when i try to run my application Main.java, it gives me the
following runtime error
Exception in thread "main" java.lang.UnsatisfiedLinkError: /home1/
users/biyer/Bala/OAPI/src/libOpenApiImp.so:
Can't load Sparc 32-bit .so on a Sparc 32-bit platform
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:993)
at OpenApi.<clinit>(OpenApi.java:7)
at Main.main(Main.java:5)
I am using the following version of JAVA on Solaris 10 Sparc
java version "1.5.0_12"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_12-b04)
Java HotSpot(TM) Server VM (build 1.5.0_12-b04, mixed mode)
Please let me know whats going wrong?
I am programming using JNI to call a method from a c static library.
I created the shared library for this purpose and the necessary
compilations.
Now, when i try to run my application Main.java, it gives me the
following runtime error
Exception in thread "main" java.lang.UnsatisfiedLinkError: /home1/
users/biyer/Bala/OAPI/src/libOpenApiImp.so:
Can't load Sparc 32-bit .so on a Sparc 32-bit platform
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:993)
at OpenApi.<clinit>(OpenApi.java:7)
at Main.main(Main.java:5)
I am using the following version of JAVA on Solaris 10 Sparc
java version "1.5.0_12"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_12-b04)
Java HotSpot(TM) Server VM (build 1.5.0_12-b04, mixed mode)
Please let me know whats going wrong?