Executing a Java program using JAR file

How to create a JAR file in Command Prompt:Start Command Prompt. Navigate to the folder that holds your class files;C:\cd mywork Set path to include

Batch File

Batch files contain a sequence of DOS commands to be executed by the command line interpreter which are executed in sequential order from a specified file in place of keystrokes from the keyboard.