cd to the directory containing the
source file. This is easy if you've used short directory names without spaces.
javac Greeting.java
java Greeting
This loads the Greeting.class file and all necessary classes.
Execution starts with the main method in the Greeting class.