eclipse this compilation unit is not on the build path
先看看项目中的project文件中的javabuilder和javanature有没有,没有就添加
<!-- 检查有没有javabuilder,没有的话添加-->
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<!-- 检查有没有javanature,没有的话添加-->
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.apache.ivyde.eclipse.ivynature</nature>
</natures>
posted on 2021-02-19 15:47 lovezj9012 阅读(225) 评论(0) 收藏 举报
浙公网安备 33010602011771号