![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
错误集锦
zhenxiaguozhi
这个作者很懒,什么都没留下…
展开
-
No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
因为重装了系统,新的JDK装在了D盘,但是eclpise的JRE home指向的是C盘的jre目录。需要修改一下eclipse的配置,改为JDK的安装目录。Window->Preference->Java->Installed JREs->Edit原创 2016-03-25 10:47:14 · 253 阅读 · 0 评论 -
The JRE could not be found.Edit the server and change the JRE location
最近重装windows以后环境真是各种乱,因为SDK被重装到D盘了。在eclipse里启tomcat时报The JRE could not be found.Edit the server and change the JRE location的错,原因是tomcat找不到JRE了。解决方案是进入 Windows->Preferences->Server->Runtime Environm原创 2016-03-25 13:04:41 · 721 阅读 · 0 评论 -
-Dmaven.multiModuleProjectDirectory system property is not set. Check $M2_HOME environment variable
之前只用eclipse自带的maven插件没问题,后来装了maven的客户端就报了这个错。百度了下都是让设置环境变量,不明觉厉。后来有一篇帖子说是maven版本和eclipse版本不兼容。那么解决方法有两种,第一种是降低maven的版本,比如换成3.1第二种是告诉eclipse运行时去哪找maven工作目录: 先配置环境变量M2_HOME=maven安原创 2016-03-25 10:17:36 · 719 阅读 · 0 评论 -
Dynamic Web Module 3.0 requires Java 1.6 or newer
百度说是因为JAVA编译器的版本太低,需要在preferences->java->compiler选择右边的Compiler compliance level:为1.6以上版本。但是我这已经是1.8了,不是这个问题。接着又看到有说工程的.classpath文件里配置了J2SE-1.5,其实就是工程的buildpath-Libraries里的JRE System Library。我这也是1.原创 2016-03-25 11:29:51 · 395 阅读 · 0 评论