尝试 运行 我的主程序时无法在 IntelliJ 终端中使用 'java' 命令

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

我正在尝试 运行 我的 java 程序使用 javajavac 命令,但它 returns 在终端中是这样的:

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

我目前正在使用 IntelliJ IDEA 2020.2 并安装了 JDK 14.1。

你配置系统PATH变量了吗?

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