• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

File Access problem...

 
Jeff Smith
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've created an applet which needs to read a jar file from the server. Nothing I try is working, I keep getting SecurityExceptions. I don't understand why... all I'm trying to do is read a file on the server. Here's the code I'm using:
jarfile = new JarFile( jarfilepath );
jarfilepath is a String that contains the path to the JarFile on the server. I've tried using URI's and URL's to see if that would work, but with those I get many, many more errors.
Please help, this is my first attempt at creating an Applet.
Jeff
 
Jeff Smith
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well I figured out that I needed to use a JarURLConnection to load the file and so I got it working.
Jeff
[ April 06, 2002: Message edited by: Jeff Smith ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic