2017 FRC Control SystemFRC Java Programming Setting up the Development EnvironmentInstalling Java 8 on the roboRIO using the FRC roboRIO Java Installer (Java only)

Installing Java 8 on the roboRIO using the FRC roboRIO Java Installer (Java only)

Running robot Java programs requires the Java runtime to be installed on the roboRIO. This can be done easily using the FRC Java Installer application. The application itself uses java, so Java 8 must be installed on the development system to use the installer. In addition a connection to the roboRIO and the internet are required to download the roboRIO Java runtime and then transfer it to the roboRIO. The installer also has provisions to download Java from the internet once, then install on multiple roboRIOs, or reinstall it after re-imaging a roboRIO.

The computer used to run the installer can be running Microsoft Windows, Mac OS X, or Linux.

Note: Whenever a new image is installed on the roboRIO (either when initially setting it up or later if the image is updated or reinstalled) the Java runtime must be replaced. This is an easy to overlook step so be sure to keep this in mind.

Prerequisite

Your roboRIO must be wired (both powered and connected to your PC) and imaged prior to installing the JRE. You also need the Eclipse FRC Java plugin installed. It is recommended that you follow the steps in the Getting Started with the 2016 Control System manual in order.

Note: Java 8 must be installed on the computer used to run the installer, previous versions of Java prior to Java 8 will not work to run the Java installer.

Oracle has updated their page with a new version of the JRE. The 1/23 Eclipse plugin update includes a fix for the Java installer. If you cannot find the right file on the page (the file described and shown in the documentation below), you are using the old Eclipse plugin and need to update. Details about updating Eclipse plugins can be found near the bottom of the Installing Eclipse (C++/Java) document.

Start the FRC Java Installer

Start the FRC Java Installer

The FRC Java Installer application is written in Java. You can usually run it (depending on your computer operating system) by double-clicking on the file in <home-directory>/wpilib/tools/java-installer.jar. So if your home directory is c:\Users\george then the installer is c:\Users\george\wpilib\tools\java-installer.jar. When it starts you'll see the start screen.

The installation takes several steps and the Next button is usually used to navigate between steps. To get started click "Next".

Getting ready to download Java from the internet

Getting ready to download Java from the internet

In this step you have the option of using an already downloaded JRE (Java Runtime Edition) or getting it now. Letting the installer help you download Java is the most common option and you get to it by clicking "Next".

Accepting the Oracle Java license agreement

Accepting the Oracle Java license agreement

In this step you must accept the License Agreement by clicking on the "Accept License Agreement" radio button. You might have to scroll down the page to see the button. Once you've done that, click "Next Step".

Select the version of Java to download

Select the version of Java to download

You now select the correct version of Java to download. For the roboRIO, that is the "ARMv7 Linux - VFP, SoftFP ABI, Little Endian JRE". This is shown in the installer instruction window.

Log into the Oracle web site

Log into the Oracle web site

To download Java, Oracle requires you to create a free account. If you already have an account you can just log in. If you don't yet have an account, click the "Sign Up" link and follow the steps to create an account. When you sign in, the download will begin.

Java downloads to your computer

Java downloads to your computer

The download will start once logged into your Oracle account. Let it finish and you will be redirected to the next step.

Getting ready to install the JRE onto the roboRIO

Getting ready to install the JRE onto the roboRIO

Make sure your computer is connected to the roboRIO. If this computer can not be connected to the roboRIO, then you can take the downloaded Java file and the installer and continue on a computer that is connected to the roboRIO. Click "Next" when you're ready to proceed.

It is recommended to use the USB connection, but Ethernet should also work; however, both interfaces (USB and Ethernet) should not be connected at the same time.

Uncompressing and getting Java ready to install

Uncompressing and getting Java ready to install

In this next step, the installer will automatically complete a number of steps to get Java ready to install on your roboRIO. Then you must enter your team number so the roboRIO can be located on the network. When you have entered the team number and the roboRIO is connected, click "Connect".

Downloading Java to the roboRIO

Downloading Java to the roboRIO

The installer will now connect and then install Java to your roboRIO. If the installer has trouble connecting, make sure the computer is on the same network as the roboRIO. You may also try turning off other network interfaces temporarily to make sure the installer finds your roboRIO.

Succesful installation

Succesful installation

A successful installation is indicated and you may exit the installer by clicking "Finish". If you want to install Java on another roboRIO, click "Restart".

0 Report Errors

Use this form to report any errors with the documentation. For help with WPILib, please use the FIRST Forums at http://forums.usfirst.org For reporting WPILib bugs, please submit an issue on GitHub at https://github.com/wpilibsuite/allwpilib/issues/new

Ignore