Follow any directions necessary to set up the Java compiler path or environments on your machine, if necessary.
Compiling and Viewing Applets
HelloAgainApplet.java and HelloAgainApplet0.html
Applets may also be viewed in the browser by viewing the local file.
javac HelloAgainApplet.javaresulting in the file HelloAgainApplet.class.
appletviewer HelloAgainApplet0.html
Compiling and Running Applications
javac RollDice.javaresulting in the file RollDice.class.
java RollDice
Other Java examples are found on the NPAC Java Resources Page.