1.打开.classPath文件,去掉无用的jar加载路径,比如
<classpathentry exported="true" kind="lib" path="WebContent/WEB-INF/hl/jboss-transaction-api_1.2_spec-1.0.0.Final.jar"/>
<classpathentry exported="true" kind="lib" path="WebContent/WEB-INF/hl/mchange-commons-java-0.2.3.4.jar"/>
<classpathentry exported="true" kind="lib" path="WebContent/WEB-INF/hl/mysql-connector-java-5.0.8-bin.jar"/>
其中某个没有相应jar包的话可以去除
2.右击项目,build path,configure build path,在libraries中remove掉无用有X提示的jar,在order and export中勾选相应jar并且点击OK