0
点赞
收藏
分享

微信扫一扫

使用Myeclipse时遇到的几个错误

ava.lang.UnsupportedClassVersionError: com/test/Add : Unsupported major.min 50\



高版本编译 ,低版本运行 ,在项目右键properties->java Compiler->选择对应的JDK版本




Unable to locate the Javac Compiler in:C:\Program Files\Java\jre7\..\lib\tools.jar



将eclipse中的JRE设置为jdk底下的jre路径。。




Apache Tomcat Maven Plugin 运行maven工程时直接将war绑定到tomcat上



maven工程中配置的方法有两种:



1。 在pom.xml文件中添加插件;



<pluginManagement>


<plugins>


<plugin>


<groupId>org.apache.tomcat.maven</groupId>


<artifactId>tomcat6-maven-plugin</artifactId>


<version>2.0-SNAPSHOT</version>


</plugin>


<plugin>


<groupId>org.apache.tomcat.maven</groupId>


<artifactId>tomcat7-maven-plugin</artifactId>


<version>2.0-SNAPSHOT</version>


</plugin>


</plugins>


</pluginManagement>



2。就是setting.xml文件中添加如下



<pluginGroups>


....


<pluginGroup>org.apache.tomcat.maven</pluginGroup>


....


</pluginGroups>







此文英文网址:http://tomcat.apache.org/maven-plugin-2.0-SNAPSHOT/


举报

相关推荐

0 条评论