• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

What is -D command line option ????

 
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.
 
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?
 
author
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It defines system properties. See the javadoc for 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).]
 
Yes, of course, and I accept that blame. In fact, i covet that blame. As does this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic