summaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/common/os
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-11-29 04:59:42 +0100
committerSven Gothel <[email protected]>2011-11-29 04:59:42 +0100
commit04391a3f417e10e1b6dafbd8becc63659af633c3 (patch)
tree2b9a5f8dc81b7631d34d306894387d3bac4b9bec /src/java/com/jogamp/common/os
parent60ea6727f1a089f6afd17fcea3bd7d29353af9b4 (diff)
JarUtil: Improve Robustness (Bug 522) and API doc, prepare for Jar-In-Jar. Add unit test.
Misc.: - IOUtil: Add toURL* methods - TempJarCache: Add 'URL getResource(String)'
Diffstat (limited to 'src/java/com/jogamp/common/os')
-rw-r--r--src/java/com/jogamp/common/os/Platform.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/java/com/jogamp/common/os/Platform.java b/src/java/com/jogamp/common/os/Platform.java
index 2c1a18e..ca1a8db 100644
--- a/src/java/com/jogamp/common/os/Platform.java
+++ b/src/java/com/jogamp/common/os/Platform.java
@@ -306,9 +306,9 @@ public class Platform {
final String nativeJarName = "gluegen-rt-natives-"+os_and_arch+".jar";
final ClassLoader cl = Platform.class.getClassLoader();
try {
- final URL jarUrlRoot = JarUtil.getJarURLDirname(
- JarUtil.getJarURL(Platform.class.getName(), cl) );
- final URL nativeJarURL = JarUtil.getJarURL(jarUrlRoot, nativeJarName);
+ final URL jarUrlRoot = JarUtil.getURLDirname(
+ JarUtil.getJarSubURL(Platform.class.getName(), cl) );
+ final URL nativeJarURL = JarUtil.getJarFileURL(jarUrlRoot, nativeJarName);
final JarFile nativeJar = JarUtil.getJarFile(nativeJarURL, cl);
TempJarCache.bootstrapNativeLib(Platform.class, libBaseName, nativeJar);
} catch (IOException ioe) {