Code not deploying

Every time we try to deploy code to the roboRIO it fails. This is the error that is gives us:

Buildfile: C:\Users\Beehive Robotics\workspace\FRC2016\build.xml
Trying to override old definition of task classloader
clean:
[delete] Deleting directory C:\Users\Beehive Robotics\workspace\FRC2016\build
[delete] Deleting directory C:\Users\Beehive Robotics\workspace\FRC2016\dist
compile:
[mkdir] Created dir: C:\Users\Beehive Robotics\workspace\FRC2016\build
[echo] [athena-compile] Compiling src with classpath=C:\Users\Beehive Robotics/wpilib/java/current/lib/WPILib.jar:C:\Users\Beehive Robotics/wpilib/java/current/lib/NetworkTables.jar: to build
[javac] Compiling 5 source files to C:\Users\Beehive Robotics\workspace\FRC2016\build
jar:
[echo] [athena-jar] Making jar dist/FRCUserProgram.jar.
[mkdir] Created dir: C:\Users\Beehive Robotics\workspace\FRC2016\dist
[mkdir] Created dir: C:\Users\Beehive Robotics\workspace\FRC2016\build\jars
[echo] [athena-jar] Copying jars from C:\Users\Beehive Robotics/wpilib/java/current/lib/WPILib.jar:C:\Users\Beehive Robotics/wpilib/java/current/lib/NetworkTables.jar: to build/jars.
[copy] Copying 2 files to C:\Users\Beehive Robotics\workspace\FRC2016\build\jars
[jar] Building jar: C:\Users\Beehive Robotics\workspace\FRC2016\dist\FRCUserProgram.jar
get-target-ip:
[echo] Trying Target: roboRIO-4268-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: For the 2020 season software documentation has been moved to https://docs.wpilib.org. Documentation for KOP items can still be found here. | FRC KOP Documentation
[sshexec] Connecting to roboRIO-4268-FRC.local:22
[sshexec] cmd : test -d /usr/local/frc/JRE

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

Total time: 10 seconds

Please help. Thank you for your help.

Did you image your rio for use with java?

Yeah. It was working until I was deploying some code and the computer shut off.

I got it to deploy. But now the comm light is red and the Driver Station can’t see robot code.

We got this error when we forgot to push our JRE onto the RoboRIO after re imaging it. good luck.