0
$\begingroup$

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.

$\endgroup$
1
  • $\begingroup$ In this case the issue can be solved by creating a new Robot Java Project $\endgroup$ – TechplexEngineer Feb 12 '15 at 20:48
2
$\begingroup$

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.

$\endgroup$
1
  • $\begingroup$ please accept this answer if it solved your problem. $\endgroup$ – Peter Mitrano Jun 26 '15 at 20:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.