Current Position:Home > Does Java Plug-in Ignore java.policy Permissions?

Does Java Plug-in Ignore java.policy Permissions?

Update:11-30Source: network consolidation
Advertisement
I am running Firefox 3.6.12 on Ubuntu Karmic with Java plug-in 1.6.0_22. I'm trying to run an Aventail OnDemand applet, and I keep getting I/O file-reading permissions exceptions in the Java console. I tried granting the permission in /usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/security/java.policy, but that was apparently ignored. Any help would be greatly appreciated.

The Best Answer

Advertisement
I think the java plugin uses C:\Program Files\Java\j2re1.4.2_04\lib\security\cacerts as a store to get keys.
The password of this file is changeit and you can use keytool to import keys.
I found contradicting information about what can be imported but if you have a p12 file (Mozilla convention for PKCS12) you can import it with java control panel:
C:\Program Files\Java\j2re1.4.2_04\bin\jpicpl32.exe
After imported a cert with control panel it was put in a file located here
C:\Documents and Settings\sbaker\Application Data\Sun\Java\Deployment\security\
Importing with the control panel makes a user specific import and importing with keytool in C:\Program Files\Java\j2re1.4.2_04\lib\security\cacerts (password is changeit) makes it machine specific.
  • Does Java Plug-in Ignore java.policy Permissions? Update:11-30

    I am running Firefox 3.6.12 on Ubuntu Karmic with Java plug-in 1.6.0_22. I'm trying to run an Aventail OnDemand applet, and I keep getting I/O file-reading permissions exceptions in the Java console. I tried granting the permission in /usr/lib/jvm/ja

  • How to handle the java.policy file ? Update:10-11

    Can somebody tell me how to handle the java.policy file? I always get java.net.SocketExceptions and java.security.AccessControlExceptions while connecting to an appserver from an applet. What do I have to write in the java.policy file, where do I hav

  • Java.policy codebase ignored Update:11-30

    I've recently been trying to allow an applet on a local webpage to write to a file in the same folder. I've been using the following .java.policy file: grant codeBase "file:${user.home}/My Documents/folder/*" {   permission java.io.FilePermissio

  • Java File Permissions Update:11-30

    I'm relatively new to Java. I'm creating a program that will be running on 40 terminals, and will simulate a wireless mobile network. Our teacher has instructed that we should simply use a text file to keep track of where all the nodes are in the net

  • Problems with $HOME/.java.policy Update:11-30

    hi, i'm using suse linux 7.3 & jdk 1.4. i have a simple test applet that prints the user name. i signed it by: [email protected]:~/java/applets/uname> jarsigner -signedjar strapp.jar trapp.jar cprokt Enter Passphrase for keystore: dubel07 [email protected]:~

  • Java applet permissions (allow access to ports 1024 ) Update:11-30

    Hello everyone, Not sure if this is the place to post this question but this forum has been extremely helpful to me in the past. I'm interested in allowing a java applet to both edit my hosts file and bind to privileged ports (this is for a trusted c

  • Adding security permission in java.policy Update:11-30

    Hi All, I need to set security permissions for applet. How we can add security permission in java.policy at runtime in java? Thanks in advance. Rakesh Kashniasearch this site and the web for a tutorial on using java's securityRead other 2 answers

  • Java.policy code delays JVM loading Update:11-30

    Hello All!! My java.policy code has 46 grant lines due to different permissions of different applets and servers. When I want to run some of this applets I've a delay of 90 seconds to load the JVM. I think I'm verifying that exist all of my servers i

  • Java.policy file  - Must I change it? Update:11-30

    I just got a certificate from Verisign with which I signed my applet. It works fine and now I want to distribute it to a group of users. Back when I was developing the applet with a self-signed cert, I changed the java.policy file to allow the applet

  • Java takes too long to load if java.policy has many sites to grant acess to Update:11-30

    The problem is that we noticed that the time Java takes to load when it's invoked by any applet from the very first time on IE, is directly proportional to the size of the java.policy file. You can have many sites to grant access to inside your java.