jQuery in Action, 2nd edition*
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


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Executable Jar  and Policy file " Watch "Executable Jar  and Policy file " New topic
Author

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
Sam
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Executable Jar and Policy file