Skip to content

Tag: native

Why am I getting this UnsatisfiedLinkError with native code?

I have a library called HelloWorld.so and a program HelloWorld.java with this content: Now when I try to run HelloWorld.java I get this error: $ /usr/java1.4/bin/java HelloWorld Exception in thread “main” java.lang.UnsatisfiedLinkError: no HelloWorld in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1491) at java.lang.Runtime.loadLibrary0(Runtime.java:788) at java.lang.System.loadLibrary(System.java:834) at HelloWorld.<clinit>(HelloWorld.java:7) Any tips? Answer @mmyers Thank you for responding. We found out that all we had to