1

I'm importing java project in eclipse and i'm getting the following errors. In description, it gives me 'Java Problems(2 items)'. First item is as follows:

The project was not built since its build path is incomplete. Cannot find the class file for java.lang.CharSequence. Fix the build path then try building this project.

Second item is as follows:

The type java.lang.CharSequence cannot be resolved. It is indirectly referenced from the required .class files.
user3117045
  • 47
  • 2
  • 9
  • Try restarting Eclipse – Reimeus Apr 18 '14 at 14:55
  • possible duplicate of [Error in Eclipse about type indirectly referenced from required .class file](http://stackoverflow.com/questions/7476092/error-in-eclipse-about-type-indirectly-referenced-from-required-class-file) – kosa Apr 18 '14 at 14:55
  • Are you sure about you are using the external JDK as build path. Now clean the project after that refresh the project. – Giri Apr 18 '14 at 15:12
  • I tried clean, refresh and restart and none of it worked. I found a difference in Access rules in JRE library. Could this be the issue? I'd 164 rules defined in my current project and none when i import it.Also, i've JRE-7 in one system and JRE-8 in the other, could be the issue. – user3117045 Apr 18 '14 at 16:55

2 Answers2

0

Just select Project option in Eclipse and click on Clean.and then build the project

Monis Majeed
  • 1,358
  • 14
  • 21
0

I was able to resolve my issue by importing rt.jar file in my project. Thanks for all the help guys.

user3117045
  • 47
  • 2
  • 9