Directions for Creating, Saving, and Running a Java Program
1) Open Notepad by either going to your Start Menu, Programs, Accessories, Notepad OR go to Start Menu, Run, type Notepad and press Enter.
2) Type in all of the programming code.
3) To SAVE the file, go to File, Save As... then in the Save as type: box, select All Files, then Navigate to the C:\java\bin folder, and save the file as the SAME EXACT NAME (case sensitive) as what you put after the word CLASS in your code, and add a .java extension after it. (ex. public class TryApplication would be TryApplication.java) (See below picture)

4) Now go to your desktop and double click the shortcut we created, entitled Java DOS Prompt, and then we will begin by compiling the .java file you created, into a .class file.
5) To compile the .java file to a .class file, type in javac TryApplication.java (case sensitive), or whatever your filename is (and YES there is a space inbetween the javac and TryApplication.java) then press Enter. After running this program to compile the file, if everything went OK, then you should see a blank line under what you typed, then another prompt saying C:\java\bin> again. If you see text on the next line instead, then you most likely have an error. If everything goes fine, then we will continue on to RUN the file.
6) To run the .class file you just created, open the Java DOS Prompt if not already open, then type java TryApplication (case sensitive) (YES there is a space in between java and TryApplication) and press Enter. If there are no errors, your program should run fine.
CONGRATULATIONS!!! YOU NOW HAVE CREATED, SAVED, AND RUN A JAVA APPLICATION!!!