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
Register / Login
JavaRanch » Java Forums » Java » JNLP and Web Start
Reply Bookmark "Loading applet from jnlp locally" Watch "Loading applet from jnlp locally" New topic
Author

Loading applet from jnlp locally

Alexandru Gifei
Greenhorn

Joined: May 19, 2012
Posts: 18

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.
Martin Vajsar
Bartender

Joined: Aug 22, 2010
Posts: 2318
    
    2

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
Greenhorn

Joined: May 19, 2012
Posts: 18
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
Bartender

Joined: Aug 22, 2010
Posts: 2318
    
    2

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! )
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Loading applet from jnlp locally
 
Similar Threads
signed jar-file gives error "Found unsigned entry in Resource"
JNLP applet to servlet communication problems -Directory Structure
How to make a JNLP file take dynamic parameter
How to embed JavaFX 2.0 application with jsp (to deploy it on server)
certificate error