Login  Register

Re: disable depth

Posted by Wade Walker on Mar 12, 2012; 10:38pm
URL: https://forum.jogamp.org/disable-depth-tp3797369p3820735.html

If you do something like this

package tmp;
public class TempDir {
  public static void main(String[] args) {
    String tmpDir = System.getProperty("java.io.tmpdir");
    System.out.println("java.io.tmpdir: [" + tmpDir + "]");
  }
}

it will print what directory java.io.tmpdir refers to on your system. Then you just use "ls" on it to check the permissions :)

If the temp directory exists and the permissions are OK, then you might check out example "all.policy" file I demonstrate on the page http://jogamp.org/wiki/index.php/Using_JOGL_in_a_Java_applet. This shows how to grant an applet extra permissions it might need to run. I'm not sure how to do this properly in a deployable applet, though -- my example currently just shows how to run the applet locally. Maybe if your applet isn't signed properly it doesn't get all the permissions?