Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What is -D command line option ????

 
Donald Wedding
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Probably a brain dead question, but what the devil is this -D option that people keep referencing?
It would seem that they are using it to set system variables, but I cannot find this in any of my java books.
I've been coding java for a two years or so and did pretty well on my SCJP, but never saw it before today.
 
Anurag Mishra
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
-D OPTION means the path of directory
Regards
Anurag
 
Donald Wedding
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm still foggy on the concept. For example, somebody else posted on this news group that their command line was going to be:
java -Djava.rmi.server.codebase=file:/c:\scjd\starting/
-Djava.rmi.server.hostname=localhost
-Djava.security.policy=java.policy suncertify.server.FBNServer
So what does this syntax mean?
 
Peter den Haan
author
Ranch Hand
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It defines system properties. See the javadoc for java.lang.String)" TARGET=_blank rel="nofollow">java.lang.System.getProperty() and friends, and the tool documentation for javac. Both sets of documentation are part of the JDK.
- Peter
[This message has been edited by Peter den Haan (edited December 08, 2001).]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic