Over at Lightspeed Frontier we’ve switched to native bullet recently. So I’m trying to add the native libraries to the IntelliJ IDEA project. Easy enough, go to the libraries section and add the jars, right? Well no, it seems. jme3-bullet.jar was added no problem along with all the libs I was adding, while I had to manually point IDEA to jme3-bullet-native.jar and it still didn’t detect it as native libraries. Told it it’s native libs manually and it added it to the dependencies.
Now when I’m trying to run the project I get this:
Exception in thread "main" java.lang.UnsatisfiedLinkError: The required native library 'bulletjme' was not found in the classpath via 'native/linux/x86_64/libbulletjme.so'. Error message: no bulletjme in java.library.path
at com.jme3.system.NativeLibraryLoader.loadNativeLibrary(NativeLibraryLoader.java:593)
at com.jme3.system.JmeDesktopSystem.initialize(JmeDesktopSystem.java:348)
at com.jme3.system.JmeDesktopSystem.newContext(JmeDesktopSystem.java:271)
at com.jme3.system.JmeSystem.newContext(JmeSystem.java:162)
at com.jme3.app.LegacyApplication.start(LegacyApplication.java:461)
at com.jme3.app.LegacyApplication.start(LegacyApplication.java:424)
at com.jme3.app.SimpleApplication.start(SimpleApplication.java:125)
Not even adding the .so file to run directory did the trick. At this point I’m out of ideas.
No, since I need to use some jars I was sent, in order to have exact same versions. Some of them are modified and not even in any repository. So it’s not really an option.
Ok. Just in case it wasn’t clear, it’s not turning off auto dependency management. You still have that for all of the other stuff. It’s just for stuff that isn’t in a maven repo anywhere, you can drop the jars in a local lib directory and let gradle suck that up, too.
Yes, I understand that. I’m just not going to use gradle which introduces a crapton of Y U NO WORK moments if I don’t get the automatic downloading and such (because all my libs are local anyway).
Anything that has any connection with gradle should probably be forbidden by law to have “easy to use” label IMO.
Soo… No idea how this worked, but updating to the latest version of IntelliJ and re-adding all the libraries seems to have fixed it. Now I have some other problems, but those aren’t IDE related.
That DLL is automatically extracted depending on the operating system. You circumvented the issue by adding it yourself, but it won’t work on other operating systems if you distribute your game.