Compile the Source File

Compile the source file as follows:

java_home_directory/javac sample.java