Compile How To Compile Java Program In Cmd Java Program How To Compile Java Program In Cmd . To compile the program, type the following command and hit enter. javac firstjavaprogram. java. you may get this error when you… Friday, 9 February 2018 Add Comment Edit