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
If you don't know how many parameters the users could pass to the batch file (if any) you need to get the no. of arguments whatever the user has passed, simply add the following snippet to your main method at the start
for (String s : args) {
    // Iterate through String array in Java (args list)
    System.out.println(s);
}
You can store all the arguments in an Arraylist to use it and iterate over it later