CS211 Bootcamp Solutions
Step 3
Prepared by:  Alvin Law (ajl56@cornell.edu)

http://www.cs.cornell.edu/courses/cs211/2004fa/syllabus.html

Java applications and other useful information can be found under Section 18 of the syllabus.

For Windows XP, you can do the following to set up running java via command line (this is the method we will be using when grading your assignments):

1)	open up the "Control Panel"
2)	open up "Systems"
3)	go to the "Advanced" tab
4)	near the bottom, click on the "Environment Variables" button
5)	under "System variables" (the lower half), find the "PATH" variable
6)	click on "Edit" to modify it
7)	at the end of the "Variable value" line, add a semicolon and add the path for your SDK, for example:  C:\j2sdk1.4.2\bin

Then, to run from the command line, run "cmd" to open up a new terminal.  Go to the directory where your project is (for example, cd MyProgramFolder).  Then use the following:

javac *.java	// this compiles all *.java files in the current folder to create the *.class files
java OurMainClass	// this runs our program, where the main method is in OurMainClass