在eclipse中使用Maven进行编译,出现以下错误,Please ensure you are using JDK 1.4 or above and not a JRE (the com.sun.tools.javac.Main class is required).
出错的原因是:eclipse默认是使用jre作为运行环境,而maven编译需要jdk作为运行环境
详细内容请参考http://blog.youkuaiyun.com/u011851478/article/details/51762014