Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Is this statement necessary ?

 
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.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!