Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

policy file in jar archive

 
Hung Tang
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1179
Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
You can set the properties with:

/Ren´┐Ż
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic