I want to pass 2 dynamic VM argument, how?
to pass one dynamic argument i use:
java -Dxxxxxxxx=xxxx main
but how to pass more than 1 argument.
Thanks.
I want to pass 2 dynamic VM argument, how?
to pass one dynamic argument i use:
java -Dxxxxxxxx=xxxx main
but how to pass more than 1 argument.
Thanks.
From Java:
-Dproperty=value
java -Dmydir="some string" SomeClass
In your command line:
java -cp . -Djava.security.auth.login.config=./loginmodules.properties -Djava.security.policy=. chp02.policy -Djava.security.manager chp02.Chp02Main
the second argument -Djava.security.policy=. chp02.policy
contains a space.
You need to enclose with " or correct the argument if the space is a mistake.