Sending code to teammate

Hello! I’m trying to share the Java source code for my team’s robot with a member on my team as he will be my alternate. I helped him install Eclipse and the needed plugins, as well as all the software provided by NI. Whenever we import the project into Eclipse it gives us a ton of errors about the build path.

We have noticed this issue as well after a fresh install of Eclipse and the WPIlib plugins.

Have your teammate create a new Robot Project using the plugins. When they create a new project for the first time, they should be prompted to enter the team ID. This entering of the team ID seems to be a critical step in the completion of the installation.

Once, the team ID is entered, my guess is that the errors in your imported project will go away.

Our general rule of thumb for setting up a new developer machine:

  • Install Eclipse
  • Install Plugins
  • Create one Robot Project (and then optionally delete it)
  • Then import other Robot Projects from shared files or github

Hope that helps.

There’s two places I know of to check:

  1. windows -> preferences -> Installed JREs and make sure that it’s not the JRE and instead is the JDK (I’ve noticed that changing workspaces screws this default up)

  2. right click on project I can’t quite what you have to click on…properties? And you can find the build path options page. Frequently I’ve seen the wpilib, network tables, and one other thing unchecked.

You also may need to click add external JARs under libraries in your project properties, same as the last post. Navigate to the location of WPILib.jar if it’s path is still set to that of the creator’s computer.