Log in

View Full Version : Need some help with deploying Java code into RoboRIO


Crimsonyde
22-11-2016, 17:38
Hello, I'm one of the few programmers of my team. Our team is now trying to move on from LabView to Java for the next season however, this is my first time using Java in robotics.
The problems i'm having is when I attempt to deploy the code via Eclipse, I get this:

Buildfile: C:\Users\Robot\workspace\886 Test\build.xml
Trying to override old definition of task classloader
clean:
[delete] Deleting directory C:\Users\Robot\workspace\886 Test\build
compile:
[mkdir] Created dir: C:\Users\Robot\workspace\886 Test\build
[echo] [athena-compile] Compiling src with classpath=C:\Users\Robot/wpilib/java/current/lib/WPILib.jar:C:\Users\Robot/wpilib/java/current/lib/NetworkTables.jar: to build

BUILD FAILED
C:\Users\Robot\wpilib\java\current\ant\build.xml:7 1: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "C:\Program Files\Java\jre1.8.0_111"

Total time: 492 milliseconds

I pinged both USB connection and the FRC.local from the command line and they both received a connection. I've also turned off firewall.
Is there anything i'm missing or anything I done wrong?

solomondg
22-11-2016, 18:33
It's an issue computer-side, not an issue with connecting to the RIO. Eclipse isn't able to find your java compiler. Make sure that the JDK is installed and that your JAVA_HOME environment variable is set to the install directory

cpapplefamily
23-11-2016, 22:30
The JDK vs. JRE tripped us up a few times. The http://wpilib.screenstepslive.com/s/4485/m/13809/l/599681-installing-eclipse-c-java start out showing the JRE selected but be sure to read the install instructions and point to your JDK.