Current Position:Home > How add grant permission in java.policy

How add grant permission in java.policy

Update:10-11Source: network consolidation
Advertisement
hi master
sir serch in my system
C:\Program Files\j2sdk_nb\j2sdk1.4.2\jre\lib\security
C:\Program Files\j2sdk_nb\_jvm\lib\security
C:\Program Files\Java\j2re1.4.1_03\lib\security
C:\Program Files\Java\jre1.5.0_10\lib\security
sir i have many java.policy file which one is default java.policy file
how i add the code
permission java.util.PropertyPermission "java.version", "read";
permission java.util.PropertyPermission "java.vendor", "read";
permission java.util.PropertyPermission "java.vendor.url", "read";
permission java.util.PropertyPermission "java.class.version", "read";
permission java.util.PropertyPermission "os.name", "read";
permission java.util.PropertyPermission "os.version", "read";
permission java.util.PropertyPermission "os.arch", "read";
permission java.util.PropertyPermission "file.separator", "read";
permission java.util.PropertyPermission "path.separator", "read";
permission java.util.PropertyPermission "line.separator", "read";
permission java.util.PropertyPermission "java.specification.version", "read";
permission java.util.PropertyPermission "java.specification.vendor", "read";
permission java.util.PropertyPermission "java.specification.name", "read";
permission java.util.PropertyPermission "java.vm.specification.version", "read";
permission java.util.PropertyPermission "java.vm.specification.vendor", "read";
permission java.util.PropertyPermission "java.vm.specification.name", "read";
permission java.util.PropertyPermission "java.vm.version", "read";
permission java.util.PropertyPermission "java.vm.vendor", "read";
permission java.util.PropertyPermission "java.vm.name", "read";
and this code
grant codeBase "C:\Program Files\j2sdk_nb\j2sdk1.4.2\jre\lib\security
permission java.security.AllPermission;
give me idea how i add my code in java.policy file of using the oracle database in applete
thank
aamir

The Best Answer

Advertisement
in the control panel see what runtime is used by ur applet, mostly the lastest one u installed.
C:\Program Files\Java\jre1.5.0_10\lib\security
in this folder grant permission for the codebase where ur database is located.
  • How add grant permission in java.policy Update:10-11

    hi master sir serch in my system C:\Program Files\j2sdk_nb\j2sdk1.4.2\jre\lib\security C:\Program Files\j2sdk_nb\_jvm\lib\security C:\Program Files\Java\j2re1.4.1_03\lib\security C:\Program Files\Java\jre1.5.0_10\lib\security sir i have many java.pol

  • 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

  • How to revoke and grant permission in java using Security Manager  ?? Update:11-30

    I like to revoke and grant permission through java code..can anybody give me a sample code.Discussion is here: http://forum.java.sun.com/thread.jspa?threadID=731363Read other 2 answers

  • Java takes too long to load if java.policy has many grants to http URLs Update:11-30

    I am facing a nasty issue with trying to secure the Java browser plugin using the java.policy file. Some jars cause the JVM to stall for a time that is directly proportional to the size of the java.policy file. The entries inside our java.policy look

  • 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.

  • Can I use policy to grant permission for my Applet? Update:11-30

    Hi, I want to know if I can use policy files to grant my applet permissions which are loaded from browser , like grant codebase "file :http://host/port" {permission java.security.AllPermission;} If anyone knows, please let me know. Thanks. Micha

  • How can I change java.policy at runtim on client machines using java webst? Update:10-11

    Hi, I have to change java.policy to launch my application through webstart to provide one RuntimePermission "permission java.lang.RuntimePermission "getClassLoader";" Its because of a bug in java bug "_http://bugs.sun.com/bugdatab

  • How to use a custum permission in the .policy file Update:10-11

    Hi, I am stuck with the problem of having a custum permission that extands java.security.BasicPermission. I really want this permission to be checked from my .policy file, but when I try to include its location : c:\java_project\server\SpecialPolicy.

  • 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

  • How can I change java.policy at runtim? Update:11-30

    Hi, I have to change java.policy to launch my application through webstart to provide one RuntimePermission "permission java.lang.RuntimePermission "getClassLoader";" Its because of a bug in java bug "_http://bugs.sun.com/bugdatab