Loading a library



To the mighty programmers over here: can anyone respond bk explaining how can i make a library load before anything is loaded. what would be the code for it?

Thanks



try using a static block to load this library before anything gets called.

Example

class Test { 
static {
System.loadLibrary("path-to-library-file");
}
....
} 

When you call new Test(), the static block will be called first before anything gets called.

Hope this helps !