- Open up a command prompt.
- Go to the directory which jar file resides using the command "cd".
- 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>
Sunday, December 12, 2010
How to run a jar file with command line arguments
Subscribe to:
Post Comments
(
Atom
)
thanks for sharing good information
ReplyDeletehttp://myitbird.blogspot.com/