Is there an easier way to specify multiple System Properties on the command line to a Java program rather than having multiple -D statements?
Trying to avoid this:
java -jar -DNAME="myName" -DVERSION="1.0" -DLOCATION="home" program.jar
I thought I had seen an example of someone using one -D
and some quoted string after that, but I can't find the example again.
-DNAME="myName" -DVERSION="1.0" -DLOCATION="home" -jar program.jar
) into a plain text file, and then run the java launcher with the "argument files" syntax, e.g.,java @that_plain_text_file
. – Diploblastic