java - run.bat command line JVM argument not passed as expected -
i'm trying pass run.bat -djava.messaging.serverpeerid=1 , args '=' been replaced space. arguments passed main.java gets set true java.messaging.serverpeerid.... shouldn't . main should have got arg appropriately.....
sample piece of code
set args = :loop1 if %1= "" goto contiarg else ( # echo here : echo " args ... %1" set args = %args% %1 shift ) goto loop1
line echo line throwing errorven used double quotes u mentioned.....
=
standard delimiter in batch/cmd.exe way pass argument enclose in double quotes (use run.bat "-djava.messaging.serverpeerid=1"
). java should able handle quotes if wish can dequote argument using %~1
when passed java.
Comments
Post a Comment