java how to run program from shell code example Example: how to run a java file in terminal javac FirstJavaProgram.java