www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: Roland on March 07, 2012, 10:22:24 am

Title: Java.IO.Filepermission on loading textures
Post by: Roland on March 07, 2012, 10:22:24 am
Hi,
I'm using Eclipse for packing the files, and the textures seems to be backed when I export the projet as a jar file.

I sign my jar file, plus I have signed the lwjgl_applet.jar file since I read that one needed to be signed. I run my application through the applet loader lwjgl is having, but I get error when I comes to loading textures, getting the message
Access denied  (Java.IO.Filepermission ....)

Doesn anyone know what I'm doing wrong?

Would really appreciate any help since I have been stuck on this for weeks now
Title: Re: Java.IO.Filepermission on loading textures
Post by: EgonOlsen on March 07, 2012, 08:20:59 pm
Have you asked in the lwjgl forums? jPCT only uses the input stream. It's not responsible for any permission problems nor can it do anything about them...
Title: Re: Java.IO.Filepermission on loading textures
Post by: Roland on March 09, 2012, 03:30:02 pm
I changed so it is sending a input stream that is working to the "new Texture(istream), still the same problem.

Has anyone made an applet here and had this problem?
Title: Re: Java.IO.Filepermission on loading textures
Post by: EgonOlsen on March 09, 2012, 04:00:55 pm
Have you tried to sign all your jars instead of just the lwjgl jar.
Title: Re: Java.IO.Filepermission on loading textures
Post by: Roland on March 09, 2012, 04:52:59 pm
got actually another error message without knowing it, but it is only for one png file, will come back if i can't solve it,
thanks