Summary: | Catch exception if using .so instead of the *native*.jar | ||
---|---|---|---|
Product: | [JogAmp] Gluegen | Reporter: | Sylvestre Ledru <sylvestre> |
Component: | core | Assignee: | Sven Gothel <sgothel> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | CC: | gouessej |
Priority: | --- | ||
Version: | 2 | ||
Hardware: | All | ||
OS: | all | ||
Type: | --- | SCM Refs: | |
Workaround: | --- |
Description
Sylvestre Ledru
2012-03-13 17:29:01 CET
Hi Set the flag jogamp.gluegen.UseTempJarCache to false in order to disable the automatic extraction of native libraries from JARs. There's no real bug, you just have to set the proper flag (jogamp.gluegen.UseTempJarCache) to false and it will work fine. OK. thanks! (In reply to comment #3) > OK. thanks! You're welcome. This kind of information should be in the user guide or in the documentation, I'm really sorry. Actually, I think something better could be done here. Instead of getting an ugly stack trace with the message: [java] java.util.zip.ZipException: error in opening zip file I think we could catch the exception and show a message like: * could not zip the jar containing the native library. Check the path or declare jogamp.gluegen.UseTempJarCache to false. don't you think ? Sven told me once that when this mechanism does not work, it uses a fallback on the previous behaviour. Please use the latest build to check that. If this fallback does not work, something should be done to fix that. Otherwise, this bug report should be closed once for all. (In reply to comment #6) > Sven told me once that when this mechanism does not work, it uses a fallback on > the previous behaviour. Please use the latest build to check that. If this > fallback does not work, something should be done to fix that. Otherwise, this > bug report should be closed once for all. Thats right, it should simply fall back to traditional native lib loading. The only informal message currently dumped is: "Catched: error in opening zip file" Yes, it could be enhanced, ie naming the actual file and mentioning the fallback action. To reproduce this behavior, I simply removed the *natives* JARs and set the LD_LIBRARY_PATH properly. |