Original class is like:
public class Test{
static {
System.loadLibrary("hello");
}
...
}
I want to change it to:
public class Test{
static {
System.load("/home/abc/libhello.so");
}
...
}
The Test.class is in a jar file. I can’t change the jar file. Any way to do it?
No. If you need to change how code behaves, you need to change the code. Why can’t you change the jar file?