1. 程式人生 > >No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?

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

his all true .so java body program mpi .com


(1)需要設置JDK
Windows -> Perferences -> Java -> Installed JRES
加入JDK 如:D:\Program Files\Java\jdk1.8.0_92
Maven update
Maven clean
project clean
build project eclipse::eclipse


(2)環境的問題。
在maven下conf文件夾裏的setting中的加入:
<profile>
<id>jdk18</id>
<activation>
<activeByDefault>true</activeByDefault>
<jdk>1.8</jdk>
</activation>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>
</properties>
</profile>

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