You can find information about the different options of java command here. -D is used to set system properties, these properties can be used by your application or by the JVM. You can find some more details here...
I don't know if you know C or C++, but in those languages you have a precompiler. You can use #define in a source file to define for example constants etc., like this:
Some C or C++ compilers allow you to define constants on the command line, when you invoke the compiler. Like this:
gcc -DMAGIC_NUMBER=23 example.c -o example
I guess the "-D" in Java has a similar function (although Java doesn't have a preprocessor and you're not defining compile-time constants with it).
If you're still not satisfied with the answer, you can indeed try asking the big boss...
Henning Ludeke
Greenhorn
Joined: Feb 17, 2010
Posts: 4
posted
0
Jesper - that makes sense.
Java is the first language that I'm delving into -
I guess if I had experience with C++ I would've been familiar with 'define' - it makes sense.