Can you run java in terminal?
Answer
Open a command prompt window and go to the directory where you saved the java program (MyFirstJavaProgram. java). … If there are no errors in your code, the command prompt will take you to the next line (Assumption: The path variable is set). Now, type
‘ java MyFirstJavaProgram ‘ to run your program.
Answer
Open a command prompt window and go to the directory where you saved the java program (MyFirstJavaProgram. java). … If there are no errors in your code, the command prompt will take you to the next line (Assumption: The path variable is set). Now, type
‘ java MyFirstJavaProgram ‘ to run your program.