The first time after importing a project into the Eclipse workspace we find that eclipse cannot find the WPILIBj.
On any import line:import edu.wpi.first.wpilibj.*
Eclipse says "unresolved import edu.
Robotics Stack Exchange is a question and answer site for professional robotic engineers, hobbyists, researchers and students. It only takes a minute to sign up.
Sign up to join this communityThe first time after importing a project into the Eclipse workspace we find that eclipse cannot find the WPILIBj.
On any import line:import edu.wpi.first.wpilibj.*
Eclipse says "unresolved import edu.
WPILib dev here. There's no need to recreate the project, although that will fix the problem. Simply right click on the project, click on properties > Java Build Path > Libraries > Add External Jar Navigate to the wpilib folder on your computer and find the wpilibj.jar file. Select that file, and clean the project.
This won't fix things if you didn't start out with a wpilibj project because you'll be missing other files like build.properties and build.xml, but if you just lost the wpilibj jar file this will resolve that.