Import into Eclipse causes error on every line

1.4k views Asked by At

I have Eclipse on my Windows 8 laptop and on a Windows 7 PC at University. I made some projects at the University and tried to import them at home and there is an error on every single line. It tells me everything cannot be resolved to a type but, as you can see, when I start writing the project from scratch (the second half of the image) I have no such problems.

I apologise, I am new to Eclipse and wonder if anyone can offer any advice. Someone recommended modifying the buildpath settings, I tried to fiddle but could not resolve the problem.

Eclipse Problem

1

There are 1 answers

1
Juan de la hoz On BEST ANSWER

What you are missing are the default Libraries in your project

Try this:

right-click on the EventHandlingDemo Project -> Build Path -> Add Libraries

then select the "JRE System Library" -> Next -> Finish

that should do it!