Error-the resource is not on the build path of a java project

错误描述

eclipse中的the resource is not on the build path of a java project,在Eclipse中点击生成源码时,弹窗提示该错误

解决办法

右键--->Properties--->Java Build Path 上找到Source选项卡,这种问题一般是没找到对应的源码,在Source下配置下你源码所在的包,此外在Libraries选项卡中,要指定的JDK依赖的库

原文地址:https://www.cnblogs.com/fangpengchengbupter/p/7988749.html