Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Build.xml (http://www.chiefdelphi.com/forums/showthread.php?t=132886)

Phred7 14-01-2015 19:14

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.

JesseK 15-01-2015 08:21

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

Cyrus526 15-01-2015 19:06

Re: Build.xml
 
Our programmer does not understand your question. Could you please elaborate?

Ben Wolsieffer 15-01-2015 19:28

Re: Build.xml
 
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".

dbjava123 16-01-2015 21:29

Re: Build.xml
 
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
11. 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.

Phred7 19-01-2015 12:21

Re: Build.xml
 
Thanks for your help, we ended up solving the problem ourselves

Joe Ross 19-01-2015 13:25

Re: Build.xml
 
Quote:

Originally Posted by Phred7 (Post 1430515)
Thanks for your help, we ended up solving the problem ourselves

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


All times are GMT -5. The time now is 10:42.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi