Go to Post There can never be enough help, unless there's too much help. - Joshua May [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 14-01-2015, 19:14
Phred7's Avatar
Phred7 Phred7 is offline
Team President
AKA: Walker Ward
FRC #2906 (Sentinel Prime)
Team Role: Electrical
 
Join Date: Oct 2014
Rookie Year: 2009
Location: Spanaway, WA
Posts: 21
Phred7 is an unknown quantity at this point
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.
Reply With Quote
  #2   Spotlight this post!  
Unread 15-01-2015, 08:21
JesseK's Avatar
JesseK JesseK is offline
Expert Flybot Crasher
FRC #1885 (ILITE)
Team Role: Mentor
 
Join Date: Mar 2007
Rookie Year: 2005
Location: Reston, VA
Posts: 3,710
JesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond repute
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.
Reply With Quote
  #3   Spotlight this post!  
Unread 15-01-2015, 19:06
Cyrus526's Avatar
Cyrus526 Cyrus526 is offline
Registered User
FRC #2906
 
Join Date: Jan 2015
Location: Spanaway Lake High School
Posts: 1
Cyrus526 is an unknown quantity at this point
Re: Build.xml

Our programmer does not understand your question. Could you please elaborate?
Reply With Quote
  #4   Spotlight this post!  
Unread 15-01-2015, 19:28
Ben Wolsieffer Ben Wolsieffer is offline
Dartmouth 2020
AKA: lopsided98
FRC #2084 (Robots by the C)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Manchester, MA (Hanover, NH)
Posts: 520
Ben Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud of
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".
__________________



2016 North Shore District - Semifinalists and Excellence in Engineering Award
2015 Northeastern University District - Semifinalists and Creativity Award
2014 Granite State District - Semifinalists and Innovation in Control Award
2012 Boston Regional - Finalists
Reply With Quote
  #5   Spotlight this post!  
Unread 16-01-2015, 21:29
dbjava123 dbjava123 is offline
Registered User
no team
 
Join Date: Jan 2015
Location: Washington
Posts: 1
dbjava123 is an unknown quantity at this point
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.
Reply With Quote
  #6   Spotlight this post!  
Unread 19-01-2015, 12:21
Phred7's Avatar
Phred7 Phred7 is offline
Team President
AKA: Walker Ward
FRC #2906 (Sentinel Prime)
Team Role: Electrical
 
Join Date: Oct 2014
Rookie Year: 2009
Location: Spanaway, WA
Posts: 21
Phred7 is an unknown quantity at this point
Thumbs up Re: Build.xml

Thanks for your help, we ended up solving the problem ourselves
Reply With Quote
  #7   Spotlight this post!  
Unread 19-01-2015, 13:25
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,590
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Build.xml

Quote:
Originally Posted by Phred7 View Post
Thanks for your help, we ended up solving the problem ourselves
What did you do? Explaining it might help someone else in the future.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 13:03.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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