• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Files in a jar, trying to access in signed applet

 
Jeff Holmes
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a jar file that contains the classes to produce an applet on a web browser. The jar is signed, in the jar I have a file I wish to access. I have succeded in this command, URL url = NameOfClass.class.getResource("file.name"); I get a value and it is the proper value. But how do I turn this URL into a file? I have used this method for getting an iamge, using Toolkit.getDefaultToolkit().getImage(url)); I didn't find anything like this on using a file? Any help... What about if I wanted to use a properties file in a jar? Thanks for your help. Jeff
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic