开发者

Eclipse Compilation Error

I imported some JTB and JavaCC generated files into Eclipse and there is one line giving me an error - the first line (a comment) most of the class files says "The type java.lang.Objec开发者_运维知识库t cannot be resolved. It is indirectly referenced from required .class files" How do I fix this?


Have you tried removing and adding the JRE in your project?

  1. Select Project -> Properties
  2. Select Java Build Path
  3. Navigate to the Libraries Tab
  4. Remove the JRE
  5. Click Add Library and add the default JRE again

PS: Project -> Clean can be very useful, too.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜