Sunday, December 12, 2010

How to run a jar file with command line arguments

  1. Open up a command prompt.
  2. Go to the directory which jar file resides using the command "cd".
  3. Type the following command to execute jar file with command line arguments.
    • java -jar <name of the jar file> <command line argument1> <command line argument2>

1 comment :

  1. thanks for sharing good information