使用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文件中添加插件;


     
       
          org.apache.tomcat.maven
          tomcat6-maven-plugin
          2.0-SNAPSHOT
       

       
          org.apache.tomcat.maven
          tomcat7-maven-plugin
          2.0-SNAPSHOT
       

     

   


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

 
    ....
    org.apache.tomcat.maven
    ....
 






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

 

你可能感兴趣的:(使用Myeclipse时遇到的几个错误)