0

I am creating a java applet, that gets information out of a JAR file on my local file system, and creates a jpanel to display in the applet.

I am getting the applet to load correctly on the appletViewer in Eclipse, but it will not load whenever i launch the Html file i created.

The html file is points to the class files, also to the external jars.

Any Suggestions?

Thanks

Roman C
  • 49,761
  • 33
  • 66
  • 176
butler_alfred
  • 83
  • 2
  • 11
  • This will not be workable for an applet on the internet. Why on earth would you not simply add the Jar to the `archive` attribute of the applet? BTW - *"Why does is load in Eclipse but not the web browser though?"* Because Eclipse, typical of IDEs, will run applets with no security sand-box. – Andrew Thompson Mar 22 '12 at 04:11

3 Answers3

0

If you are using Netbeans then right click on your Applet project ->Properties->webstart-> clickon Enablewebstart ->customize->select radio self-signedby generatedkey->ok

then your job will be done

user2492472
  • 51
  • 1
  • 1
0

Yes, if the applet is signed with the jarsigner tool.

user207421
  • 305,947
  • 44
  • 307
  • 483
0

Unless explicitly granted, an applet may not access the local file system.

"Will not load" sounds like you have a packaging error instead of a permission error. Have a look at the appletviewer logs.

Thorbjørn Ravn Andersen
  • 73,784
  • 33
  • 194
  • 347