Re: Return of the "java.lang.UnsatisfiedLinkError: Can't load library: /System/Library/Frameworks/gluegen-rt.Framework/gluegen-rt" exception...
Posted by Alexis Drogoul on Jun 02, 2015; 9:55am
URL: https://forum.jogamp.org/Return-of-the-java-lang-UnsatisfiedLinkError-Can-t-load-library-System-Library-Frameworks-gluegen-rt-tp4034549p4034569.html
Hi Wade,
Thanks for your answer. It gave me an idea and I asked my colleague (who had the error, but lives 11000 kms away) to print out the input and output URLs. I took the time to compare them to my inputs and outputs (the error had not manifested itself since yesterday on my computer).
The input, of course, was the same. Regarding the first output, I spotted one tiny difference (besides the user name and the location of the workspace).
On mine: jar:file:/Users/XXXXXXX/Downloads/eclipse/../../GAMA/LocalGIT/ummisco.gama.opengl/gluegen-rt.jar!/com/jogamp/common/os/Platform.class
On his: jar:file:/Users/XXXXXXX/Downloads/Eclipse Luna/../../GAMA/LocalGIT/ummisco.gama.opengl/gluegen-rt.jar!/com/jogamp/common/os/Platform.class
Notice the difference ? His installation of Eclipse Luna is in a folder called "Eclipse Luna" (*with* a space), mine is in "eclipse" (*no* space).
I immediately added a space to my folder name and bam ! I was able to reproduce the problem. Removed the space, the problem went away (i.e. no more exception).
So I guess there is a bug, either in JarUtil or in Eclipse Luna, that prevents JOGL from correctly handling URLs with a space in them. Can you confirm this ?
To be clear, this bug is reproducible on our two machines, but I'm not entirely convinced it is the only cause (as I never added a space before to my folder names and had the exception on a more or less random basis). I will try to understand what other problem can explain this erratic behavior (although it is more complicated now that it seems to work flawlessly…).
In any case thanks to all of you for your very helpful comments !
Cheers
Alexis