(I changed my account name as I realised it was available again)
I think the loading of OpenAL32.dll and wrap_oal.dll works on the JOGLAppletLauncher thanks to this code :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| if (haveJOAL) { try { Class c = Class.forName("net.java.games.joal.impl.NativeLibLoader"); c.getMethod("disableLoading", new Class[] {}).invoke(null, new Object[] {}); } catch (Exception e) { e.printStackTrace(); }
String javaLibPath = System.getProperty("java.library.path"); String absPath = nativeLibDir.getAbsolutePath(); boolean shouldSet = false; if (javaLibPath == null) { javaLibPath = absPath; shouldSet = true; } else if (javaLibPath.indexOf(absPath) < 0) { javaLibPath = javaLibPath + File.pathSeparator + absPath; shouldSet = true; } if (shouldSet) { System.setProperty("java.library.path", javaLibPath); }
loadLibrary(nativeLibDir, "joal_native"); } |
But the JNLPAppletLauncher does not extract the content of the joal-native-xxx.jar, so even if I add this code at the beginning of my app it will not work. Does anybody have an idea ?