I have created a jar which needs to be called in a bat file. I need to pass all the command line arguments recieved by bat file to the jar. Can anyone please help me out. I
The parameters that you pass to your batch file can be accessed via
%1 %2 %3 ...
So if you call your batch like
C:>application.bat param1 param2 param3
then your java call inside the batch file should look like:
@echo off java -cp app.jar com.example.Main %1 %2 %3