Hello,
I'm trying to load a shared library from within my Exchanger-class to access native methods. Before loading the lib via System.load (not System.loadLibrary!) the class performs a check whether the file exists. The code in startUp() looks like this:
File lib = new File(config.miscellaneous.dbLibraryPath);
if (lib.exists()) {
System.load(lib.getAbsolutePath());
}
It works well testing it outside eGate.
Running it with stcewgenericjava, System.load throws an UnsatisfiedLinkError with "No such file or directory". The Participating Host runs under HPUX, so chmodding the library file from 755 to 444 gives UnsatisfiedLinkError with "Permission denied" (e.g. it can find the file!).
Tested it with all versions of libjvm.sl.
Any suggestions? Thanks in advance
Daniel
I'm trying to load a shared library from within my Exchanger-class to access native methods. Before loading the lib via System.load (not System.loadLibrary!) the class performs a check whether the file exists. The code in startUp() looks like this:
File lib = new File(config.miscellaneous.dbLibraryPath);
if (lib.exists()) {
System.load(lib.getAbsolutePath());
}
It works well testing it outside eGate.
Running it with stcewgenericjava, System.load throws an UnsatisfiedLinkError with "No such file or directory". The Participating Host runs under HPUX, so chmodding the library file from 755 to 444 gives UnsatisfiedLinkError with "Permission denied" (e.g. it can find the file!).
Tested it with all versions of libjvm.sl.
Any suggestions? Thanks in advance
Daniel