-1

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.

EliasV
  • 1
  • 2
  • Have you searched other answered questions on the site? This can be a common issue when running Java programs for the first time, after initial setup. For example: https://stackoverflow.com/questions/15796855/java-is-not-recognized-as-an-internal-or-external-command. – Villager Sep 28 '20 at 11:17

1 Answers1

1

Have you configured your system PATH variable?

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

Riaan Nel
  • 2,425
  • 11
  • 18
  • Thanks, followed a YouTube tutorial on how to set Path in Windows 10 for the JDK: https://www.youtube.com/watch?v=gBHOeI5QB8M – EliasV Sep 28 '20 at 10:51