Reputation: 491
I want to load so file "libhello.so" with java, for some reasons, i can't change LD_LIBRARY_PATH in redhat, the .so file "libhello.so" is in /home/arthur/lib, how can i load this so file? below is the sample code:
class HelloWorld {
public static void main(String[] args) {
System.loadLibrary("hello");
}
}
Upvotes: 0
Views: 405