I’ve been using JDK1.6.0_20 for jMonkey development in both Netbeans and Eclipse. I recently upgraded to JDK 1.7.0_01 and JDK 1.7.0_2 and none of my jMonkey files compile. I get the following error:
WARNING: Cannot locate native library: linux/libbulletjme.so
Exception in thread "LWJGL Renderer Thread" java.lang.UnsatisfiedLinkError: /home/user/NetBeansProjects/jMEProject1/liblwjgl.so: libjawt.so: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.security.AccessController.doPrivileged(Native Method)
BUILD SUCCESSFUL (total time: 1 second)
Even on JDK 1.6x I have always gotten the warning on the first line, but the files still compiled and ran. Now it won’t run the resulting file. I’ve tested with both JDK 1.7x platforms. I should note that the file “/home/user/NetBeansProjects/jMEProject1/liblwjgl.so” does exist, but I don’t know where “libjawt.so” might be. Any ideas?
This looks more like a classpath error than anything.. Weird. Have you tried deleting the natives that have already been extracted?
I have all 3 JDKs installed, I have just been selecting between them when loading netbeans via the terminal using the —jdk-home switch. What should I delete and where might they be located?
I searched my whole computer for those filenames. I did find one of those files liblwjgl.so in my home folder and copied it to the project folder, but I still get the same error. I don’t think that was related to the new JDK. All the other ones found were in older project folders. I think I had at some point created a project within the home folder itself long ago which left it there.
Also, I started a new project from existing sources and imported the jMonkery libraries. This also gave the same error and did not work.
Apparently you aren’t the first to have problems in NetBeans with Java 7…
You must be logged in to reply to this topic.