For Programmers: Free Programming Magazines  


Home > Archive > Java Security > December 2006 > adequate privileges to get the resource









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author adequate privileges to get the resource
rikhardw@msn.com

2006-12-15, 7:10 pm

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?

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com