• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Loading applet from jnlp locally

 
Alexandru Gifei
Ranch Hand
Posts: 42
Java Linux Postgres Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Sheriff
Posts: 3752
62
Chrome Netbeans IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 42
Java Linux Postgres Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3752
62
Chrome Netbeans IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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! )
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic