user724769
user724769

Reputation: 1

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.Object cannot be resolved. It is indirectly referenced from required .class files" How do I fix this?

Upvotes: 0

Views: 4895

Answers (1)

dertkw
dertkw

Reputation: 7838

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.

Upvotes: 2

Related Questions