简体   繁体   中英

IntelliJ Editor - Error Cannot run program - Change java compiler path

Previously I have installed with Java 15 version.

Recently I have uninstalled java 15 and installed the java 1.8 version .

IntelliJ not automatically not detect the 1.8 version and still looking for java 15 version. So I am getting the below error.

在此处输入图像描述

I changed File> Build,Execution,Deployment> Java Compiler> Project bytecode version: 1.8. However, I can't change the Module language level and Project language level to 1.8 because there's not option for that. I still get the same error below.

Someone help me, how to change the compiler path in the IntelliJ Editor.

Java Compiler path is able to change using File -> Project Structure -> SDK's and edit the path as java 1.8 jdk path.

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM