aspose file tools*
The moose likes JNLP and Web Start and the fly likes Loading applet from jnlp locally Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "Loading applet from jnlp locally" Watch "Loading applet from jnlp locally" New topic
Author

Loading applet from jnlp locally

Alexandru Gifei
Ranch Hand

Joined: May 19, 2012
Posts: 40


I have a problem launching a Java Applet from html page. The html page deploys the jnlp file. When i launch the jnlp alone, the applet loads fine, but when i launch the jnlp within html page i get this Security Exception.

Found unsigned entry in resource file: file:/E:/Dropbox/workspace/Java/Hearts/bin/Hearts.jar

I have added the following lines to the C:\Program Files\Java\jre7\lib\security\java.policy file because in my applet i need read permissions, i need to read from a xml file to parse and load png's :


The contents of the jnlp file:

The contents of the HTML file:

The html file is local.

Life is not measured by the number of breaths we take, but by the moments that take our breath away.
Martin Vajsar
Sheriff

Joined: Aug 22, 2010
Posts: 3610
    
  60

An applet which wants to access local filesystem needs to be signed. The exception you're getting indicates you haven't signed your applet. See also this FAQ.
Alexandru Gifei
Ranch Hand

Joined: May 19, 2012
Posts: 40

i followed the steps here http://support.sas.com/rnd/appdev/V30/tech/signing/RSASigning.htm and still nothing... i need to fix this error in a couple of days ...
Martin Vajsar
Sheriff

Joined: Aug 22, 2010
Posts: 3610
    
  60

What does "still nothing" mean? Do you get the same exception? (See TellTheDetails ⇐ click)

If that is the case, can you verify the JAR is signed?

Where did you get your signing certificate from?

(... and welcome to the Ranch! )
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Loading applet from jnlp locally