This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes policy file in jar archive Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Reply Bookmark "policy file in jar archive" Watch "policy file in jar archive" New topic
Author

policy file in jar archive

Hung Tang
Ranch Hand

Joined: Feb 14, 2002
Posts: 148
I want to run my program from a jar file. But to setup the server, I need to start rmiRegistry and this requires my policy file to be read. The policy file is in the jar file though. What do I type in my command prompt to be able to read the policy file in the jar file, so I can load up my server properly?
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

Hi
You can set the properties with:

/Ren�


Regards, Rene Larsen
Dropbox Invite
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: policy file in jar archive
 
Similar Threads
Policy file question and readme question
How do I grant applications launched through JWS socket permission?
Using Data Objects(DTO) in EJB
JARing an RMI server app.
Problem loading policy file programmatically