bocockli
2011-12-31 03:13:07 UTC
Hi
MACOS 10.6.8
Netbeans 7.0.1
I'm trying to use JNI (Oracle Sleepycat DB) which uses native libraries.
Works on the command line using java -Djava.library.path=/native-lib-path
Works if I symlink the native libraries to /Library/Java/Extensions (horrible solution)
Fails in Netbeans: Have tried:
Added -J-Djava.library.path= to netbeans.conf
Added -Djava.library.path=/native-lib-path to project VM options
System.out.println(System.getProperty("java.library.path")) in the application shows the JVM is not getting passed the additional library path.
Netbeans seems to be completely ignoring any attempt to set the java.library.path
Ideas?
Thanks, Len
MACOS 10.6.8
Netbeans 7.0.1
I'm trying to use JNI (Oracle Sleepycat DB) which uses native libraries.
Works on the command line using java -Djava.library.path=/native-lib-path
Works if I symlink the native libraries to /Library/Java/Extensions (horrible solution)
Fails in Netbeans: Have tried:
Added -J-Djava.library.path= to netbeans.conf
Added -Djava.library.path=/native-lib-path to project VM options
System.out.println(System.getProperty("java.library.path")) in the application shows the JVM is not getting passed the additional library path.
Netbeans seems to be completely ignoring any attempt to set the java.library.path
Ideas?
Thanks, Len