Ram Kumar answered question 9/3/2009 How Can We Run Java Program By Command Prompt? Give Answer In Steps Please? You may run program with 2 types.. 1: After installing the java, save your coding in the bin file which is in the c: After that go to command prompt then go to the bin location then compile the coding by using the keyword javac and then run.