we want to use a native library, but when the constructor, which uses a native call, is called the framework seems to hang up.
If we start concierge via:
java -Djava.library.path=./libs -jar concierge.jar
everything works fine.
The class (with the mentioned constructor) also has a static method, which provides some setLibraryPath method.
Using this method the framework hangs up as soon as we call the constructor.
Setting "Bundle-NativeCode: moyocore.dll" in the manifest and putting the dll inside the bundle seems to have no effect.
So is there a method to run the framework successfully without specifying the "-D.."-argument?
Cheers,
Frank
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm clueless why this happens. What exactly is the "hanging up" behavior? Is the VM crashing or does the framework stop to boot up the bundles?
Did you check the debug outputs? If I remember correctly, the native code resolving algorithm produces a verbose output that might be helpful.
Cheers,
Jan.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hey,
we want to use a native library, but when the constructor, which uses a native call, is called the framework seems to hang up.
If we start concierge via:
java -Djava.library.path=./libs -jar concierge.jar
everything works fine.
The class (with the mentioned constructor) also has a static method, which provides some setLibraryPath method.
Using this method the framework hangs up as soon as we call the constructor.
Setting "Bundle-NativeCode: moyocore.dll" in the manifest and putting the dll inside the bundle seems to have no effect.
So is there a method to run the framework successfully without specifying the "-D.."-argument?
Cheers,
Frank
I'm clueless why this happens. What exactly is the "hanging up" behavior? Is the VM crashing or does the framework stop to boot up the bundles?
Did you check the debug outputs? If I remember correctly, the native code resolving algorithm produces a verbose output that might be helpful.
Cheers,
Jan.