简体   繁体   中英

No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK? - but jdk selected

I am trying to do atlas-run (following a simple tutorial about building confluence themes) I am getting the following error:

No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?

However: I have gone to my eclipse settings (window - > preferences - > java) and checked that the jdk is both ticked as default and is also selected as the execution environment (to be safe, I removed the JRE). I also went to my system settings and made sure that PATH and JAVA_HOME were both pointing to the JDK not the JRE.

I had the same problem.

Go to Control Panel --> System --> Advanced System Settings

Click Environment Variables
My JAVA_HOME was set to c:\program files (x86)\java\jre1.8.0_111
I changed it to:
C:\Program Files\Java\jdk1.8.0_111
and it ran successfully.

解决方案:进入项目运行配置,选择执行环境:CDC-1.0/Foundation-1.0 (jdk1.8),点击立即运行。

我对 maven-compiler-plugin 有同样的问题将 maven bin 文件夹添加到 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