Current Position:Home > Explicitly installin java.policy problem

Explicitly installin java.policy problem

Update:11-30Source: network consolidation
Advertisement
is there any one who knows how to explicitly install the java.policy. What i have been doing is set the policy of the RMI server through a file like java.policy which contains this
grant {
permission java.security.AllPermission
"*:1024-65535","connect,accept,resolve";
and run the server through a batch file where the java.policy file is loaded through the system. is there anyone who knows to load the policy in the server code itself, that is, installing it explicitly?
thanks..

The Best Answer

Advertisement
Yes, this is true ...but there is a saying about hardcode ...it makes things hard to code. Hardcoding the policy file eliminates flexibility for your clients and makes things harder to deploy. It certainly breaks from the standard. I just wouldn't want the poster to think one way is just as good as the other. But you do have a choice, this is true.
  • Explicitly installin java.policy problem Update:11-30

    is there any one who knows how to explicitly install the java.policy. What i have been doing is set the policy of the RMI server through a file like java.policy which contains this grant { permission java.security.AllPermission "*:1024-65535",&q

  • 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.policy file problem Update:11-30

    Is there someone who knows how to reinitialise the java policy file at runtime? My signed applet writes a policy file to the users home directory, but that file is only used after closing the browser and surfing back to our page. It should immediatly

  • Java.policy setting Update:11-30

    Hi, I am writing an web based application using applets nadn eed to contact a MYSql database. I am getting Access Denied exception. In my java.policy file I added the following two lines : grant codeBase "http://mywebpage/"{ permission java.secu

  • 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

  • Java 7: Problems launching applets with jars on "file://" location Update:10-11

    Hi, We are experiencing a problem when updating our client's JRE from Java6 U 21 up to Java7 U 55. We have developed an Applet which is composed by several JAR files. Some of those JARs must be stored in local drive, and the JAR with the main Java cl

  • Implementing own Policy - Problems occur. Update:10-11

    I am implementing my own Policy class (via the -Xbootclasspath and java.security file). (Using jdk 1.4) I have two problems: 1. My Policy class is not instantiated unless I call Policy.getPolicy() a. I have run the app as such: java -Djava.security.m

  • ClassLoader & java.policy Update:10-11

    Hi , I am facing problem with the following code. ClassLoader loaderPrev = Thread.currentThread().getContextClassLoader(); ClassLoader loader = URLClassLoader.newInstance(new URL[]{new URL(CodeBase)} , loaderPrev ); ClassLoader loader = new URLClassL

  • Java Applets and .java.policy Update:10-11

    Hi. We are developing an applet that need to access to the file systems and anothers properties, like user.home. To do this and don't modify the java.policy of the jre, we create a .java.policy file into user home. The content is: grant { permission

  • Can distribution of a .java.policy file be eliminated Update:11-30

    Sorry for the stupid question, but I'm fairly new to the realm of dealing with Java security... I have an applet that I want to deploy worldwide as part of an upgrade to an existing website, but I've run into the following error: "Error getting conne