Can't use 'java' command in IntelliJ terminal when trying to run my main in it

1.2k views Asked by At

I'm trying to run my java program using the java and javac command, but it returns this in the terminal:

'java' is not recognized as an internal or external command,
operable program or batch file.

I'm currently using IntelliJ IDEA 2020.2 and have JDK 14.1 installed.

1

There are 1 answers

1
Riaan Nel On BEST ANSWER

Have you configured your system PATH variable?

See https://www.java.com/en/download/help/path.html.