java 1.8 how to compile a .java file code example Example: compile java // compile > javac myCode.java // run > java myCode