Login  Register

Re: appbundler jogl jnilib dylib one-jar confusion

Posted by nyholku on Nov 26, 2012; 3:25pm
URL: https://forum.jogamp.org/appbundler-jogl-jnilib-dylib-one-jar-confusion-tp4027169p4027216.html

Hi,

like I reported the fat jar approach works for me on Windows and Mac OS X,
but on Ubuntu I get:

Catched UnknownHostException: home,
while TempJarCache.bootstrapNativeLib() of jar:
file://home/nyholku/Desktop/./EazyCNC!/lib/gluegen-natives-linux-i586.jar!/
 
(file://home/nyholku/Desktop/./EazyCNC!/lib/ +
gluegen-natives-linux-i586.jar)
Catched UnknownHostException:
home, while addNativeJarLibsImpl(classFromJavaJar class
jogamp.nativewindow.NWJNILibLoader, classJarURL
jar:file://home/nyholku/Desktop/./EazyCNC!/lib/jogl-all.jar!/jogamp/nativew
indow/NWJNILibLoader.class, nativeJarBaseName jogl-all):
jogl-all-natives-linux-i586.jar +
file://home/nyholku/Desktop/./EazyCNC!/lib/ ->
jar:file://home/nyholku/Desktop/./EazyCNC!/lib/jogl-all-natives-linux-i586.
jar!/
Catched IOException: TempJarCache: addNativeLibs:
jar:file://home/nyholku/Desktop/./EazyCNC!/lib/jogl-all-natives-linux-i586.
jar!/, previous load attempt failed, while
addNativeJarLibsImpl(classFromJavaJar class
jogamp.nativewindow.NWJNILibLoader, classJarURL
jar:file://home/nyholku/Desktop/./EazyCNC!/lib/jogl-all.jar!/jogamp/nativew
indow/NWJNILibLoader.class, nativeJarBaseName jogl-all):
jogl-all-natives-linux-i586.jar +
file://home/nyholku/Desktop/./EazyCNC!/lib/ ->
jar:file://home/nyholku/Desktop/./EazyCNC!/lib/jogl-all-natives-linux-i586.
jar!/
Catched IOException: TempJarCache: addNativeLibs:
jar:file://home/nyholku/Desktop/./EazyCNC!/lib/jogl-all-natives-linux-i586.
jar!/, previous load attempt failed, while
addNativeJarLibsImpl(classFromJavaJar class
jogamp.nativewindow.NWJNILibLoader, classJarURL
jar:file://home/nyholku/Desktop/./EazyCNC!/lib/jogl-all.jar!/jogamp/nativew
indow/NWJNILibLoader.class, nativeJarBaseName jogl-all):
jogl-all-natives-linux-i586.jar +
file://home/nyholku/Desktop/./EazyCNC!/lib/ ->
jar:file://home/nyholku/Desktop/./EazyCNC!/lib/jogl-all-natives-linux-i586.
jar!/


So I'm left wondering where to start looking for trouble (oops, looks
like I'm already looking for trouble with a fat jar approach ;-)?

If I understood what the exception says some one (is that JOGL stuff?)
is trying to find host 'home' ... AFAIU there URL is wrong as it
if the host is omitted then the there should be /// not // and
thus it is technically correct that host 'home' cannot be found....?!

Also I'm wondering what is that exclamation number in 'EazyCNC!'
and in 'gluegen-natives-linux-i586.jar!' ?

Who/what constructs that URL?

Is this piece just some helpfull output

(file://home/nyholku/Desktop/./EazyCNC!/lib/ +
gluegen-natives-linux-i586.jar)


as it looks even less valid if interpreted as an URL?


best regards Kusti