LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: th3barri3 on October 25, 2012, 05:17:37

Title: Access denied (LWJGL Cache)
Post by: th3barri3 on October 25, 2012, 05:17:37
For some unkown reason lwjgl is getting this exception when downloading packages. Just for clarity this is a applet running from filesystem not web server. I known what the exception is, i don't know why.

java.io.FileNotFoundException: C:\Users\Admin\AppData\Local\Temp\lwjglcache\localhost\gbk alpha (Access is denied)
   at java.io.FileOutputStream.open(Native Method)
   at java.io.FileOutputStream.<init>(Unknown Source)
   at java.io.FileOutputStream.<init>(Unknown Source)
   at org.lwjgl.util.applet.AppletLoader.downloadJars(AppletLoader.java:1476)
   at org.lwjgl.util.applet.AppletLoader.run(AppletLoader.java:871)
   at java.lang.Thread.run(Unknown Source)

Many thanks.
Title: Re: Access denied (LWJGL Cache)
Post by: CodeBunny on October 25, 2012, 11:36:24
What are the read permissions for that directory?
Title: Re: Access denied (LWJGL Cache)
Post by: kappa on October 25, 2012, 13:20:12
What version of LWJGL are you using? (ensure you use the latest LWJGL 2.8.4).

Maybe the cache directory has corrupted it self somehow, or it (or some file in there) is being used by some other application, try delete the "gbk alpha" directory to see if it helps.
Title: Re: Access denied (LWJGL Cache)
Post by: th3barri3 on October 26, 2012, 01:37:00
Hi thanks for your help. The problem still hasn't been fixed :'(
I have ruled out a browser problem by testing it on multiple browsers. I think i'm going to write a custom applet launcher because Im creating my codebase along side my project anyway.

In response to CodeBunny...
I have checked the read/write permissions and they are all fine. Java is the owner of the folder due to it being the creator of it.

In response to kappa...
I am using the latest LWJGL, Version 2.8.4 and I deleted the whole cache folder multiple times with no luck. Windows didn't throw the in use by an application warning either.