Log in

View Full Version : Code Works on Robot but Still Displays Errors


minutebot
12-03-2015, 17:52
I'm working with Java in Eclipse and even though when I deploy code it works fine on the robot, I'm still getting error messages throughout my code stemming from the initial errors in the import statements "The import edu cannot be resolved". I've tried a number of things to fix this
-Removing the JRE system library and readding it
-I've selected jdk.1.8.0_25 in the installed JREs
-Reimported from github
-Reinstalled eclipse
-Reinstalled the FRC plugins

Yet none of these have worked. I'd really like to be able to tell when my code has an actual error so any help is much appreciated.

Fauge7
12-03-2015, 20:17
Try removing and added the referenced libraries in your code. By that I mean remove the wpilib and add it again...its looking in a different location and eclipse cannot find it however the build script does. I had the same problem just readd the libraries and it should be fixed.

minutebot
14-03-2015, 11:44
I just fixed it. Turns out I needed to add wpilib as a new variable and manually set the build path.