It's a class path issue.
Short version:
In your current directory, you have FirstProgram.java. You type the following: javac FirstProgram.java
java -cp . FirstProgram
Longer version: If you follow these steps exactly, it will work.
http://java.sun.com/docs/books/tutorial/getStarted/cupojava/win32.html