How can I run a batch file and pass parameters to jar file?
this doesn\'t work
mybat.bat
java -jar log_parser.jar %1 %2 %3 %
In my case I use the following bat-file:
@echo off PATH_TO_JRE\bin\java.exe -jar -Denable=true your_file.jar
At this particular case then in java code I can get the param "enable" like this:
Boolean.getBoolean("enable")