diff --git a/jme3-desktop/src/main/java/com/jme3/system/NativeLibraryLoader.java b/jme3-desktop/src/main/java/com/jme3/system/NativeLibraryLoader.java index 1e796c3c7..5d286d83e 100644 --- a/jme3-desktop/src/main/java/com/jme3/system/NativeLibraryLoader.java +++ b/jme3-desktop/src/main/java/com/jme3/system/NativeLibraryLoader.java @@ -360,6 +360,12 @@ public final class NativeLibraryLoader { String fileNameInJarWithoutExtension = fileNameInJar.substring(0, fileNameInJar.lastIndexOf(".")); + if (platform.is64Bit() && !fileNameInJarWithoutExtension.endsWith("64")) { + // This is to avoid conflicts with 32-bit versions of the + // same library when extracting. + fileNameInJarWithoutExtension += "64"; + } + String systemJniExtension; String dummyLib = System.mapLibraryName(""); if (dummyLib.contains(".")) { diff --git a/jme3-examples/libbulletjme64.so b/jme3-examples/libbulletjme64.so new file mode 100644 index 000000000..410d79abf Binary files /dev/null and b/jme3-examples/libbulletjme64.so differ