AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

adequate privileges to get the resource

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Security and Java
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Sat Dec 16, 2006 12:09 am    Post subject: adequate privileges to get the resource Reply with quote



Hi, I am working on an applet. I am loading images from a class that is
not the main executing class of the applet. I am using the following
code
Component output_comp;
URL imgurl =
getClass().getClassLoader().getResource(("images/image1.gif"));
Image img = output_comp.getToolkit().createImage(imgurl);
The imgurl that is returned is null and I believe that the problem is
due to the caller not having adequate privileges to get the resource.
Is there some way I can fix this problem or does anyone know what my
problem could be?
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Security and Java All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.