the resource is not on the build path of a Java project报错解决

Posted FrankChia

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了the resource is not on the build path of a Java project报错解决相关的知识,希望对你有一定的参考价值。

the resource is not on the build path of a Java project

这种问题一般都是没找到对应的源码,在对应工程上,

右键--->Properties--->Java Build Path 上找到Source选项卡,这个地方一般指的的是src目录,有的公司的项目中的src目录并不是直接在工程目录下,有的可能会放在比如WEB-INF(咱们这里就不讨论是否合理了),那么Source页签下的src目录就应该指向WEB-INF下的src了,此外,在Libraries选项卡中,一般指定的JDK依赖的库,同时还要指定本项目中的那个lib 文件夹下的jar包(是本项目的库),这种方式就可以解决上述问题了!一般需要把打开的类,关闭后,重新打开就好了。

 

 
 

以上是关于the resource is not on the build path of a Java project报错解决的主要内容,如果未能解决你的问题,请参考以下文章

The requested resource is not available错误

转The requested resource (/) is not available

HTTP Status 404(The requested resource is not available)异常解决

the request resource is not available

The requested resource is not available的解决办法

Debug出现的问题The origin server did not find a current representation for the target resource or is not