Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Help with Eclipse (http://www.chiefdelphi.com/forums/showthread.php?t=148407)

Jayd009 13-05-2016 13:01

Help with Eclipse
 
Hello,

I am trying to use GitHub for my team's FRC programming next year. I uploaded a copy of last year's code to the repository. However, after I import it from GitHub, I keep getting three errors.



I have the JDK setup correctly in Eclipse, and I have the FRC plugins installed correctly, but I don't understand why other computers can't use the file.

I'm using a Windows 10 64-bit laptop.

Thanks,

Jonathan Daniel

sagrossm 13-05-2016 14:14

Re: Help with Eclipse
 
I haven't read through this very well but this might help you, it's a guide to using github and eclipse.

http://wiki.eclipse.org/EGit/User_Guide#GitHub_Tutorial

Alan Anderson 13-05-2016 14:52

Re: Help with Eclipse
 
The error messages point to "unbound classpath variable" problems. That doesn't sound like Git's fault.

I'm going to take a wild guess and say that there's something in the project definition that needs to be changed to account for the fact that it's residing in a different place on the new computer.

jweston 13-05-2016 16:12

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.

Peter Johnson 13-05-2016 18:46

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.

Jayd009 13-05-2016 20:44

Re: Help with Eclipse
 
Quote:

Originally Posted by jweston (Post 1586493)
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!


All times are GMT -5. The time now is 22:40.

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