December 16, 2011 at 19:04 #23154
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:Java123456789101112131415WARNING: Cannot locate native library: linux/libbulletjme.soException 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 directoryat java.lang.ClassLoader$NativeLibrary.load(Native Method)at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1928)at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1825)at java.lang.Runtime.load0(Runtime.java:792)at java.lang.System.load(System.java:1059)at org.lwjgl.Sys$1.run(Sys.java:70)at java.security.AccessController.doPrivileged(Native Method)at org.lwjgl.Sys.doLoadLibrary(Sys.java:66)at org.lwjgl.Sys.loadLibrary(Sys.java:95)at org.lwjgl.Sys.<clinit>(Sys.java:112)at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:199)at java.lang.Thread.run(Thread.java:722)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?December 16, 2011 at 19:43 #159193
well you probably do not have the native build with the right bitcount. (Installed a 54 bit vm and former was 32 or other way round)December 17, 2011 at 00:18 #159194
I had downloaded the Netbeans7.0+JDK1.7 bundle for 32-bit x86 linux. Is there any way to fix it so I can use the new JDK?December 17, 2011 at 00:29 #159195
This looks more like a classpath error than anything.. Weird. Have you tried deleting the natives that have already been extracted?December 17, 2011 at 00:32 #159196
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?December 17, 2011 at 00:32 #159197
Downgrade to jdk 6 and problem solved xD.December 17, 2011 at 00:37 #159198
The natives are those “.so” files you’re seeing referenced.December 17, 2011 at 01:00 #159199
I deleted the .so files, restarted Netbeans yet I still get the same error.December 17, 2011 at 05:56 #159200December 17, 2011 at 13:17 #159201
Are the .so files being extracted again after you delete them?December 17, 2011 at 17:26 #159202
Are the .so files being extracted again after you delete them?
No, they are only recreated if I run JDK 1.6 again, but not when I run either of the JKD1.7 versions.December 17, 2011 at 17:39 #159203
So those are not the files you look for, probably the extraction dir is use_home because java applications cannot write to the application dir under 1.7 or something.December 17, 2011 at 18:12 #159204
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.December 17, 2011 at 18:42 #159205
Apparently you aren’t the first to have problems in NetBeans with Java 7…December 17, 2011 at 21:24 #159206
It is not only with netBeans 7, it acts the same when I use JDK1.7 in Netbeans 6.8 and 6.9 too… weird.
You must be logged in to reply to this topic.