0

I'm not good with Java but when I run my Applet in a simple HTML page, occurs the following error

SecurityException: Trusted loader attempted to load sandboxed resource from file : C:/Users/lucas/teste.jar

Edited: policy tool

I follow the tutorial but in the step 7, i got the following error

enter image description here

Translated:

Could not open file policy C:\Program Files\Java\jdk1.7.0_05\bin\raystore: sun.security.provider.PolicyParser$ParsingException line 1: expected [;] found[pípí]

Lucas_Santos
  • 4,638
  • 17
  • 71
  • 118

2 Answers2

2

Applets run in a sandbox with limited permissions.

http://docs.oracle.com/javase/tutorial/deployment/applet/security.html

You can sign your Applet as detailed below if you want to override these default permissions.

http://java.sun.com/developer/onlineTraining/Programming/JDCBook/signed.html

Alan Hay
  • 22,665
  • 4
  • 56
  • 110
0

jarsigner is in JDK, not in JRE. Check you have that in your path.

Alternatively write all the command path e.g. %PROGRAMFILES%\Java\jdk1.7.0_01\bin\jarsigner.exe

Javier
  • 678
  • 5
  • 17
  • well, what is myKeyStore ? I found this code on internet but I don't understand... jarsigner -keystore myKeyStore teste.jar me – Lucas_Santos Jul 16 '12 at 15:34