fifalover
asked on
Putting a security policy file inside a JAR file
I need to include a security policy file with my client application because it uses RMI. It won't be edited once deoployed, but I'd like to put it into the JAR file I have all the class files in. This way someone just has to copy over the one JAR file and they can use the application. Is there any way to include a security policy file inside that JAR file? I've tried doing it and then executing the code like so:
java -classpath myjar.jar;. -Djava.security.policy=pol icy.txt MyClass
It doesn't seem to work. Any ideas?
java -classpath myjar.jar;. -Djava.security.policy=pol
It doesn't seem to work. Any ideas?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
no sorry
ASKER