eclipse处理Runtime ClassNotFoundExceptions may result警告
最近有个项目,要集成第三方的接口,使用的是webservice的方式,第三方给了我们一些jar包,我们把这写jar包添加到classpath中,eclipse警告Classpath entry org.eclipse.jdt.USER_LIBRARY/axis will not be exported or published. Runtime ClassNotFoundExceptions may result.
通过警告的描述,首先感觉是classpath有问题,通过查看classpth
通过对比可以看出来,我们自己添加的classpath和其他有点不一样,问题就分析到这里,现在直接说解决方案:
打开Problem视图,选中此警告,然后按Ctrl+1或者右击选择fix it,弹出修复对话框,选择 “Exclude the associated raw classpath entry….”
再次查看classpath,我们添加的classpath就和别的一样了