Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Technical Discussion (http://www.chiefdelphi.com/forums/forumdisplay.php?f=22)
-   -   Need some help with deploying Java code into RoboRIO (http://www.chiefdelphi.com/forums/showthread.php?t=152378)

Crimsonyde 22-11-2016 17:38

Need some help with deploying Java code into RoboRIO
 
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:

Code:

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:71: 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

Re: Need some help with deploying Java code into RoboRIO
 
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

Re: Need some help with deploying Java code into RoboRIO
 
The JDK vs. JRE tripped us up a few times. The http://wpilib.screenstepslive.com/s/...eclipse-c-java start out showing the JRE selected but be sure to read the install instructions and point to your JDK.


All times are GMT -5. The time now is 02:23.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi