Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Executable Jar and Policy file

 
Sam Stackly
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3451
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic