maven 学习过程中产生的问题1

问题:
Please
ensure you are using JDK 1.4 or above and
not a JRE
(the com.sun.tools.javac.Mainclass is required).

问题原因是eclipse里面设置的默认为jre目录,更改为jdk,这样eclipse就运行在jdk上面

解决方法:

Add and set the JRE in Window->Preferences...->Java->Installed JREs:

JRE type:Standard VM JRE 
Name: jdk1.6.0_18
JRE home directory
: C:\Java\jdk1.6.0_18
 
posted @ 2012-04-18 22:55  feiling  阅读(182)  评论(0编辑  收藏  举报