Slick Forums

Discuss the Slick 2D Library
It is currently Thu Jun 01, 2023 11:43 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Sat Nov 09, 2013 10:10 pm 
Offline

Joined: Sat Nov 09, 2013 9:54 pm
Posts: 2
Hi, i have problem with running my game in applet. I always get this error

Sat Nov 09 22:40:56 CET 2013 ERROR:access denied ("java.io.FilePermission" ".\org\newdawn\slick\data\defaultfont.png" "read")
java.security.AccessControlException: access denied ("java.io.FilePermission" ".\org\newdawn\slick\data\defaultfont.png" "read")
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at sun.plugin2.applet.AWTAppletSecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkRead(Unknown Source)
at java.io.File.exists(Unknown Source)
at org.newdawn.slick.util.FileSystemLocation.getResourceAsStream(FileSystemLocation.java:52)
at org.newdawn.slick.util.ResourceLoader.getResourceAsStream(ResourceLoader.java:61)
at org.newdawn.slick.opengl.InternalTextureLoader.getTexture(InternalTextureLoader.java:185)
at org.newdawn.slick.Image.<init>(Image.java:192)
at org.newdawn.slick.Image.<init>(Image.java:166)
at org.newdawn.slick.Image.<init>(Image.java:154)
at org.newdawn.slick.Image.<init>(Image.java:132)
at org.newdawn.slick.AngelCodeFont.<init>(AngelCodeFont.java:104)
at org.newdawn.slick.Graphics$1.run(Graphics.java:141)
at java.security.AccessController.doPrivileged(Native Method)
at org.newdawn.slick.Graphics.<init>(Graphics.java:138)
at org.newdawn.slick.GameContainer.initSystem(GameContainer.java:759)
at org.newdawn.slick.AppletGameContainer$Container.initApplet(AppletGameContainer.java:261)
at org.newdawn.slick.AppletGameContainer$ContainerPanel.initGL(AppletGameContainer.java:229)
at org.newdawn.slick.AppletGameContainer$ContainerPanel.start(AppletGameContainer.java:216)
at org.newdawn.slick.AppletGameContainer$1.run(AppletGameContainer.java:92)

Maybe someone know how to fix this issue ?

Best Regards.
PK


Top
 Profile  
 
PostPosted: Thu Mar 27, 2014 7:58 am 
Offline

Joined: Sat Mar 30, 2013 7:43 pm
Posts: 6
Hi!

I'm sorry this topic is quite old, but I have the same problem and I can't figure out how to resolve it. Does anyone have a clus ?

I know that resources can't be accessed with File class inside a jar, I didn't do it with my own ressources but what if it's slick which look for its resources..

Thanks for any help!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group