permaculture playing cards
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Executable Jar  and Policy file 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 "Executable Jar  and Policy file " Watch "Executable Jar  and Policy file " New topic

Executable Jar and Policy file

Sam Stackly
Ranch Hand

Joined: May 04, 2002
Posts: 109
Hi Guys,
I created executable jar file for client and server and I am wondering what should I do with policy file ? Should I add it to that jar file and that would be enough??
Thanks in advance
Michael Morris
Ranch Hand

Joined: Jan 30, 2002
Posts: 3451
Hi Sam,
I doubt that you can use a policy file from the same jar file that an aplication runs from since that would be a very simple way to bypass security. Just put the policy file in the same directory as the executable jar and invoke it from the command line with:

Hope this helps,
Michael Morris

Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher
I agree. Here's the link:
subject: Executable Jar and Policy file
It's not a secret anymore!