In order to create a java application...

Write the source code using any editor.
Save the code as <program name>.JAVA

Compile the Intermediate code by typing
JAVAC <program name>.java
at a DOS command prompt

A new file will be created called
<program name>.class
that contains the intermediate code that will 'run' on any platform.
Go to the next topic: Running an Applet or Application