Structure of bat file:

H1_Run.bat

echo on
java –classpath “./classes;./classes/mylib.jar” msgdemo.MsgApp
pause

======================================

Notes:

0. The example assumes the bat file is in the  project folder
     and that the "classes" folder is also in the project folder.

1. Double-click executes the bat file in a DOS window.

   Any error messages are shown in the DOS window.

 2. The program runs relative to the MsgDemo folder.

3.  The package name "msgdemo" is a folder in the classes file.

    
The folder MsgDemo can be moved to any disk location and still run.
 
4.  If the program uses the xylayout class,
     then jbcl.jar must be provided in the classes folder

5.  This assumes user machine has path defined for "java" command.

6.   Do NOT invoke "javac" in the bat file.

7.   Option:  all classes could have been combined in a jar file.
      Jar file could be executable (do not do this for 501  homework).