Originally Posted by
tleaf
...
p.load(getClass().getClassLoader().getResourceAsStream("jpos/res/jpos.properties"));
...
It worked fine in eclipse whe i run the class as an applet. The properties file is inside sources.
When export as jar and run from a browser i get :
access denied ("java.util.PropertyPermission" "*" "read,write")
jpos/res/jpos.properties not found
In order to check if jpos.properties has been packaged up into the right location within the jar file, please run
(I'm assuming your JDK's bin directory is already in your system PATH environment variable. If not, run
\absolute_path_to_jdk's_bin_directory\jar -tf adg.jar.)
Originally Posted by
tleaf
if i autosign the jar i get the same error and in addition:
How did you "autosign" the jar? Also, was it signed using a self-signed certificate, or with a trusted CA-signed certificate?
Originally Posted by
tleaf
Missing Permissions manifest attribute for: file:/C:/Documents%20and%20Settings/Administrator/Desktop/applet/adg.jar
Missing Codebase manifest attribute for: file:/C:/Documents%20and%20Settings/Administrator/Desktop/applet/adg.jar
Missing Permissions manifest attribute for: file:/C:/Documents%20and%20Settings/Administrator/Desktop/applet/adg.jar
This applies to signed applet jars only. The following web page may be of help: