This document provides instructions on how to compile and run a Java file from the command line. It explains how to check that the Java compiler (javac) is in the system path, and provides the commands to compile a Java file, run it, take input from a file, output to a file, and make a batch file to automate the process. It also addresses some frequently asked questions.