您的位置:首页 > 编程语言 > Java开发

web项目在eclipse中出现红感叹号时候的解决方法

2016-06-06 02:50 447 查看
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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  eclipse web jar