First off, when posting code please use code tags
. Also, our team had the same problem. You have to tell Eclipse to use the JDK under "Installed JREs". On some computers we also had to go to the project preferences and have wpilib checked, and we could never find out why on some and not all but it did end up fixing the problem. We also found out that in the future it helps to open one of the included example WPIlib projects and then reimport your code and that seemed to fix all errors with importing.