permaculture playing cards
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes policy file in jar archive Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "policy file in jar archive" Watch "policy file in jar archive" New topic

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

You can set the properties with:


Regards, Rene Larsen
Dropbox Invite
I agree. Here's the link:
subject: policy file in jar archive
It's not a secret anymore!