Question: how to run awt program in cmd?
Answer: Start a MS-DOS command window. ...  Now, change to the directory of your choice from within the command window. ...  Create some Java source code with Notepad from within the command window. ...  The source code, Test.java, might look like this: ...  Double check the name of the Java program file you just saved.