File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Executable Jar and Policy file
 
Similar Threads
Executable jar
is it possible to convert .class to .exe
Destop application
how to create the excutable jar?
how to stop rmiregistry ??