开发者

Eclipse Compilation Error

开发者 https://www.devze.com 2023-02-28 12:41 出处:网络
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开发者_运维知识

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

精彩评论

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

关注公众号