Login  Register

Help with temp jar cache!

Posted by Martin Hegedus on Nov 29, 2011; 3:39am
URL: https://forum.jogamp.org/Help-with-temp-jar-cache-tp3544164.html

I'm running under SUSE Linux and when trying to run my code I got this mysterious error

ava.io.IOException: Permission denied
        at java.io.UnixFileSystem.createFileExclusively(Native Method)
        at java.io.File.checkAndCreate(File.java:1704)
        at java.io.File.createTempFile(File.java:1792)
        at com.jogamp.common.util.cache.TempFileCache.initTmpRoot(TempFileCache.java:159)
        at com.jogamp.common.util.cache.TempFileCache.<clinit>(TempFileCache.java:76)
        at com.jogamp.common.util.cache.TempJarCache.initSingleton(TempJarCache.java:77)
        at com.jogamp.common.os.Platform$3.run(Platform.java:305)

So I tracked it down to a permission problem with the /tmp/jogamp.tmp.cache directory.

I originally ran my code under root and the jogamp.tmp.cache directory was created with root permissions under /tmp.
drwxr-xr-x 3 root     root          184 2011-11-28 16:50 jogamp.tmp.cache

Then, when I changed user to "martin" I of course could not write to that directory so I needed to do the following within the code

System.setProperty("jogamp.gluegen.UseTempJarCache","false");

This seems like a basic problem.  Do I have jogl installed correctly?

I followed the instructions and got jogl by using git.  Is this the best way to get jogl?  Is this an alpha version of jogl?  To be honest, I'm not sure which version of jogl I have.  All I can say is that I followed the instructions and I downloaded jogl on the 24th of this month.  Are there more stable, older versions?