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?
- Select
Project
->Properties
- Select
Java Build Path
- Navigate to the
Libraries
Tab - Remove the JRE
- Click
Add Library
and add the default JRE again
PS: Project
-> Clean
can be very useful, too.
精彩评论