Thread: Build.xml
View Single Post
  #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