Go to Post Hmmm, the Michelangelo method of robot building. Just cut away anything that doesn't look like a robot. - GaryVoshol [more]
Home
Go Back   Chief Delphi > Technical > Programming
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 13-05-2016, 16:12
jweston's Avatar
jweston jweston is offline
Registered User
FRC #1124 (The Überbots)
Team Role: Mentor
 
Join Date: Mar 2015
Rookie Year: 2015
Location: Avon, CT
Posts: 71
jweston is a splendid one to beholdjweston is a splendid one to beholdjweston is a splendid one to beholdjweston is a splendid one to beholdjweston is a splendid one to beholdjweston is a splendid one to beholdjweston is a splendid one to behold
Re: Help with Eclipse

I've helped our team often with this error. The problem is the plugin hasn't set up the necessary environment variables to tell the project where WPILib jars are.

To fix:
1. Go into Eclipse > Preferences.
2. Go into Java >Build Path >Classpath Variables.
3. Click New.
4. Enter Name: wpilib.
5. Click File... and navigate to <user directory>/wpilib/java/current/lib/WPILib.jar
6. Click OK.
7. Repeat steps 3-6 for:
Name: networktables, <user directory>/wpilib/java/current/lib/NetworkTables.jar
Name: wpilib.sources, <user directory>/wpilib/java/current/lib/WPILib-sources.jar
Name: networktables.sources, <user directory>/wpilib/java/current/lib/NetworkTables-sources.jar

I'm assuming you've installed the WPILib Eclipse plugin. If you haven't, please do so by:
1. Go to menu item Help > Install New Software...
2. Click Add...
3. Enter http://first.wpi.edu/FRC/roborio/release/eclipse/ for Location and click OK.
4. Check the checkbox next to WPILib Robot Development and click Next at the bottom until you finish.

Last edited by jweston : 13-05-2016 at 16:16.
Reply With Quote
  #2   Spotlight this post!  
Unread 13-05-2016, 18:46
Peter Johnson Peter Johnson is offline
WPILib Developer
FRC #0294 (Beach Cities Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Redondo Beach, CA
Posts: 247
Peter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud of
Re: Help with Eclipse

The easiest solution (after you have the plugins installed) is just to create a new (temporary) Java robot project. You only have to do this once (per computer) and you can delete the temporary project afterwards. Creating the project will prompt you for the team number and set up the necessary wpilib etc Java classpath variables.
__________________
Author of cscore - WPILib CameraServer for 2017+
Author of ntcore - WPILib NetworkTables for 2016+
Creator of RobotPy - Python for FRC

2010 FRC World Champions (294, 67, 177)
2007 FTC World Champions (30, 74, 23)
2001 FRC National Champions (71, 294, 125, 365, 279)
Reply With Quote
  #3   Spotlight this post!  
Unread 13-05-2016, 20:44
Jayd009's Avatar
Jayd009 Jayd009 is offline
Registered User
AKA: Jonathan
FRC #4468 (Fernbank LINKS)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2016
Location: Atlanta, Georgia
Posts: 27
Jayd009 is on a distinguished road
Re: Help with Eclipse

Quote:
Originally Posted by jweston View Post
I've helped our team often with this error. The problem is the plugin hasn't set up the necessary environment variables to tell the project where WPILib jars are.

To fix:
1. Go into Eclipse > Preferences.
2. Go into Java >Build Path >Classpath Variables.
3. Click New.
4. Enter Name: wpilib.
5. Click File... and navigate to <user directory>/wpilib/java/current/lib/WPILib.jar
6. Click OK.
7. Repeat steps 3-6 for:
Name: networktables, <user directory>/wpilib/java/current/lib/NetworkTables.jar
Name: wpilib.sources, <user directory>/wpilib/java/current/lib/WPILib-sources.jar
Name: networktables.sources, <user directory>/wpilib/java/current/lib/NetworkTables-sources.jar

I'm assuming you've installed the WPILib Eclipse plugin. If you haven't, please do so by:
1. Go to menu item Help > Install New Software...
2. Click Add...
3. Enter http://first.wpi.edu/FRC/roborio/release/eclipse/ for Location and click OK.
4. Check the checkbox next to WPILib Robot Development and click Next at the bottom until you finish.
That worked perfectly. I'm no longer having the error on any of the computers. Thank you for your help!
__________________
2016: District Event Winner @ Columbus District Qualifier (PCH)
2016: Engineering Inspiration Award @ Peachtree District State Championship
2016: Tesla Subdivision Playoffs Appearance @ FIRST Championship


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 22:40.

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