Win a copy of Rust Web Development this week in the Other Languages forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Files in a jar, trying to access in signed applet

Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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(""); 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
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic