Author Topic: Java.IO.Filepermission on loading textures  (Read 2264 times)

Offline Roland

  • byte
  • *
  • Posts: 7
    • View Profile
Java.IO.Filepermission on loading textures
« 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

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Java.IO.Filepermission on loading textures
« Reply #1 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...

Offline Roland

  • byte
  • *
  • Posts: 7
    • View Profile
Re: Java.IO.Filepermission on loading textures
« Reply #2 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?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Java.IO.Filepermission on loading textures
« Reply #3 on: March 09, 2012, 04:00:55 pm »
Have you tried to sign all your jars instead of just the lwjgl jar.

Offline Roland

  • byte
  • *
  • Posts: 7
    • View Profile
Re: Java.IO.Filepermission on loading textures
« Reply #4 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