• Post Reply Bookmark Topic Watch Topic
  • New Topic

Is this statement necessary ?  RSS feed

 
Zhou Can
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use these two command line to start the server :
java -Djava.rmi.hostname=localhost -Djava.security.policy=suncertify.policy server.jar
java -Djava.security.policy=suncertify.policy server.jar
Both results are correct . Which one should i take ?
 
John Smith
Ranch Hand
Posts: 2937
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

java -Djava.rmi.hostname=localhost -Djava.security.policy=suncertify.policy server.jar

There is absolutely no need to specify the dns when you start the server, -- it already knows who it is!
Eugene.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!