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

Popular posts from this blog

javascript - oscilloscope of speaker input stops rendering after a few seconds -

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -