• Post Reply Bookmark Topic Watch Topic
  • New Topic

error in the running/launching the application

seema pal
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i m trying to launching/running the jnlp aqpplication through the java web start but there is error in to given the permission how can we give these permission in java policy file.

java.security.AccessControlException: access denied (java.io.FilePermission /home/guest/reload/reload-editor/helpers/md/md11/profile read)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkRead(Unknown Source)
at java.io.File.exists(Unknown Source)
at uk.ac.reload.diva.util.CopyTask.execute(CopyTask.java:147)
at uk.ac.reload.editor.EditorFrame$2.run(EditorFrame.java:319)
at uk.ac.reload.editor.EditorFrame.checkSupportFolder(EditorFrame.java:313)
at uk.ac.reload.editor.EditorFrame.<init>(EditorFrame.java:153)
at uk.ac.reload.editor.EditorFrame.main(EditorFrame.java:220)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sun.javaws.Launcher.executeApplication(Unknown Source)
at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Ed Ewing
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You probably need this in your jnlp file:

You will also have to sign your jar files with "jarsigner".
Madhavan Kutty
Posts: 3
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
After the info tag, add this :

Also, sign your jars so that they can access the local system resources. Signing is done as follows :

1. Make sure that you have an SDK 1.4.2 keytool and jarsigner in your path. These tools are located in the SDK bin directory.
2. Create a new key in a new keystore as follows:

keytool -genkey -keystore myKeystore -alias myself

You will get prompted for a information about the new key, such as password, name, etc. This will create the myKeystore file on disk.
3. Then create a self-signed test certificate as follows:

keytool -selfcert -alias myself -keystore myKeystore

This will prompt for the password. Generating the certificate may take a few minutes.
4. Check to make sure that everything is okay. To list the contents of the keystore, use this command:

keytool -list -keystore myKeystore

It should list something like:

Keystore type: jks
Keystore provider: SUN
Your keystore contains 1 entry:
myself, Tue Jan 23 19:29:32 PST 2001, keyEntry,
Certificate fingerprint (MD5):
C2:E9:BF:F9 3 F:4C:8F:3C:5F:22:9E:AF:0B:42:9D

5. Finally, sign the JAR file with the test certificate as follows:
jarsigner -keystore myKeystore test.jar myself

Repeat this step with all of your JAR files.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!