我正在使用m2eclipse在Eclipse中编译一个项目.我在Eclipse中设置JDK路径,如下所示:
Windows-->preferences-->installed jres--> jdk1.7.xx path
Run Code Online (Sandbox Code Playgroud)
但这显示出错误
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.424s
[INFO] Finished at: Tue Oct 29 15:21:01 IST 2013
[INFO] Final Memory: 5M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler- plugin:3.1:compile (default-compile) on project TEST-WEB: Compilation failure
[ERROR] No compiler is provided …
Run Code Online (Sandbox Code Playgroud) 我在eclipse中使用maven创建了一个webapp项目.当我在命令提示符下运行命令mvn package时,它显示以下错误.
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.310s
[INFO] Finished at: Tue Mar 05 14:32:23 IST 2013
[INFO] Final Memory: 16M/218M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.0:compile (default-compile) on project Compilation fa
ilure
[ERROR] ***No compiler is provided in this environment. Perhaps you …
Run Code Online (Sandbox Code Playgroud) 我几天前下载了最新的1.8.65 JDK,缺少javac文件
如果有人认为我意外地下载了JRE,这里有两个截图
当我浏览到我安装JDK的目录时
C:\Enwicklung\JDK\1.8.65\bin
Run Code Online (Sandbox Code Playgroud)
javac.exe文件不在那里,正如您在第二个屏幕截图中看到的那样
谁能证实这一点?试图第二次安装JDK而不做任何改动.
编辑:当然我搜索了整个驱动器的javac.exe,没有找到匹配项