Build.xml

I’ve been having an issue for ages now where eclipse will connect to our roboRio, but the code will not deploy to the robot. Now, after not touching the code for ages, the build.xml file has an error that causes the build to fail.
<import file="${wpilib.ant.dir}/build.xml"/>
That line of code has a warning on it that says it cannot find the file.
<project default= “deploy” name= “FRC Deployment”>
The error on this line tells me "Default Target deploy does not exist in this project.
What does this mean, and how can I fix this? Thank you.
Spanaway Lake High School, 2906.

What other jars/libraries are on the build path of the project? Double check each actually exists on the computer you’re building from.

Our programmer does not understand your question. Could you please elaborate?

This problem happened to me when I switched Eclipse workspaces without setting the team number and tools version.
I would try going to Window->Preferences->WPILib Preferences and making sure the team number is set correctly and that the tools version is set to “current”.

Eclipse may not see the wpi libraries. I have seen this on a couple of computers. This causes lots of red in your code that says it can’t find objects. It also can cause deploy errors.

  1. Right click your project
  2. Select properties on the menu
  3. click “Java Build Path”
  4. Click Libraries
  5. Look at the items called “Network tables” and “WPILIB”. They should have a path to those libraries. If they say none, then that is your problem.
  6. Click on the item that says “networktables”
  7. Click edit
  8. Then click variable button
  9. There should be a variable name networktables. If not create a variable called “networktables”.
    10 The path will look something like “C:/Users/[replace with your loginname]/wpilib/java/current/lib/NetworkTables.jar”. You will need to find these jars and put the correct path in. Do not use the ones in sunspotfrcjdk. Those are last years
  10. You will have to do the same thing for wpilib.jar

Another issue that causes build issues is that you have eclipse looking at the wrong version of java on your computer. Then you want to delete eclipse, install java, reboot your pc, then follow the install directions for eclipse very carefully.

[FONT=“Comic Sans MS”]Thanks for your help, we ended up solving the problem ourselves[/FONT]

What did you do? Explaining it might help someone else in the future.