java compile command line example Example: cmd java compile javac MyFisrtProgam.java // enter to compile java MyfirstProgram // run program