Login  Register

Re: Help with temp jar cache!

Posted by Sven Gothel on Nov 29, 2011; 5:46am
URL: https://forum.jogamp.org/Help-with-temp-jar-cache-tp3544164p3544291.html

On Tuesday, November 29, 2011 04:39:06 AM Martin Hegedus [via jogamp] wrote:

>
> 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?

Yes - my fault.

Thank you very much for this bug report, I missed the fact when
'mkdir' the temp root, it only has permissions for the current user.

Working on a fix right now, THANK YOU.

>
> 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?

If you are fit using git, it's the best.

Otherwise, you can check the wiki for the diff. releases:
  - stable RC builds
  - autobuilds ..

I will update you when it's fixed. Would be great if you verify it afterwards.

Cheers, Sven