1. Install Eclipse
For best performance and to avoid compatibility errors, download the latest version of Eclipse for Java Developers, currently Eclipse Neon (as of 10-7-16).
Eclipse Mars and Eclipse Luna also works.
Troubleshooting
I downloaded a zip file, but no installer. How do I get Eclipse?
For versions before Eclipse Mars, Eclipse is actually a Java program, not an executable. To use, simply find the program file inside the folder hierarchy and open. As long as Java has been installed correctly, the application will start up successfully.
For ease of operation, it is usually beneficial to move the folder containing the Eclipse program files to a more appropriate place and/or create a shortcut to the program.
"No compiler/jdk found" - JAVA_HOME not set correctly
This error usually occurs when the Eclipse reference to the JDK is not set to the right location on the local computer.
To fix this, go to Window
(Eclipse
on Macs), Preferences
, Java
, and under the Java hierarchy, select Installed JREs
and in the menu, make sure there is a valid link to a JDK on the local computer.
See here for more detailed instructions not covered here.
2. Install the Java FRC Plugins
These plugins will allow you to be able to program the roboRIO.
- In Eclipse, select the Help menu in the top menu bar.
- Select
Install new software...
. - In the site field, enter in
http://first.wpi.edu/FRC/roborio/release/eclipse/
- In the menu below, check the box
Show only software applicable to target environment
. - Then click the arrow next to
WPILib Robot Development
and selectRobot Java Development
and clickNext
. - Click
Next
on the next window and accept all of the license agreements. - Click
Finish
to install. - There may be a security warning about unsigned content. Press
OK
to continue. This happens because eclipse is not perfect. - After installing, restart Eclipse. The plugins will continue to install when Eclipse starts back up. This is normal operation.