• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What does the "-D" parameter means?

 
Sara El-Kady
Greenhorn
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

This might sound pretty basic but I would like to understand what does the "-D" paramenter mean in the following line?



is there some sort of documentation that has all the other valid paramenters as well?

Thanks,
Sara
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33699
316
Eclipse IDE Java VI Editor
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
-D is Java's way of saying "system property." It is to show the argument goes to the VM rather than the main() method of your program.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 17639
39
Android Eclipse IDE Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To expand, "D" for "Define", so "-Dname=value" constructs a name/value pair and catalogs the name in the JVM's System Properties collection. This collection is convenient as a quick-and-dirty command-line option facility (since you don't have to parse it yourself), as the place to set environment features of the JVM itself, and as a way to support options to "add-in" systems which the application doesn't need to configure itself. Things like logging options, for example.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic