BUILD FAILED - Remote command failed with exit status 1

I have this error, which I can’t figure out how to fix. I have the latest FRC Plugins and just imaged the Rio with 2017 v8. Here is the full output:

Buildfile: C:\Users\MHS\Documents\GitHub\FRC5113_2017\build.xml
Trying to override old definition of task classloader
clean:
   [delete] Deleting directory C:\Users\MHS\Documents\GitHub\FRC5113_2017\build
   [delete] Deleting directory C:\Users\MHS\Documents\GitHub\FRC5113_2017\dist
compile:
    [mkdir] Created dir: C:\Users\MHS\Documents\GitHub\FRC5113_2017\build
     [echo] [athena-compile] Compiling src with classpath=C:\Users\MHS\wpilib\java\current\lib\WPILib.jar;C:\Users\MHS\wpilib\java\current\lib\NetworkTables.jar;C:\Users\MHS\wpilib\java\current\lib\opencv.jar;C:\Users\MHS\wpilib\java\current\lib\cscore.jar to build
    [javac] Compiling 10 source files to C:\Users\MHS\Documents\GitHub\FRC5113_2017\build
jar:
     [echo] [athena-jar] Making jar dist/FRCUserProgram.jar.
    [mkdir] Created dir: C:\Users\MHS\Documents\GitHub\FRC5113_2017\dist
    [mkdir] Created dir: C:\Users\MHS\Documents\GitHub\FRC5113_2017\build\jars
     [echo] [athena-jar] Copying jars to build/jars.
     [copy] Copying 4 files to C:\Users\MHS\Documents\GitHub\FRC5113_2017\build\jars
      [jar] Building jar: C:\Users\MHS\Documents\GitHub\FRC5113_2017\dist\FRCUserProgram.jar
get-target-ip:
     [echo] Trying Target: roboRIO-5113-FRC.local
     [echo] roboRIO found via mDNS
dependencies:
     [echo] roboRIO image version validated
     [echo] Checking for JRE. If this fails install the JRE using these instructions: https://wpilib.screenstepslive.com/s/4485/m/13503/l/288822-installing-java-8-on-the-roborio-using-the-frc-roborio-java-installer-java-only
  [sshexec] Connecting to roboRIO-5113-FRC.local:22
  [sshexec] cmd : test -d /usr/local/frc/JRE

BUILD FAILED
C:\Users\MHS\wpilib\java\current\ant\build.xml:293: Remote command failed with exit status 1

Total time: 8 seconds

Here is our code - https://github.com/FRC5113/FRC2016_5113_2/commit/52c4894f9cd6021586963c9f21bce97d1b0d358d

I was not getting this error before I updated the plugins and reimaged the Rio. I have tried this on two different Rios, both on the same version - 2017 v8.

Install the JRE on the rio. There’s a link to instructions in your error message.

Sorry, that is the code from last year. You can go to the organization and click on this year’s repository.

Answer remains the same. Your log output has this section here that tells you exactly what’s going on:

     [echo] Checking for JRE. If this fails install the JRE using these instructions: https://wpilib.screenstepslive.com/s/4485/m/13503/l/288822-installing-java-8-on-the-roborio-using-the-frc-roborio-java-installer-java-only
  [sshexec] Connecting to roboRIO-5113-FRC.local:22
  [sshexec] cmd : test -d /usr/local/frc/JRE

On the linked page there’s this little blurb:

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.

The process to install the JRE is super simple. The program does most of it for you.