• Post Reply Bookmark Topic Watch Topic
  • New Topic

JVM parameters in MANIFEST file  RSS feed

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey guys
really its my first time to build RMI application

now I have problem
I want to double click the jar file and run every thing

but the problem is the JVM parameters
-Djava.rmi.server.codebase
-Djava.rmi.server.hostname
-Djava.security.policy

is there a way to set these parameters in the manifest file?
or how could i do that without running the cmd?

 
Ranch Hand
Posts: 30
Chrome Eclipse IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Abdel Rahman Barakat,

You can create shell script (*.bat for windows or *.sh for *nix systems) and write there something like this:
java -jar any.jar -Djava.rmi.server.codebase="" -Djava.rmi.server.hostname="" -Djava.security.policy=""
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!