Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Can find the compiler on Eclipse? (http://www.chiefdelphi.com/forums/showthread.php?t=133093)

MRT45 17-01-2015 19:53

Can find the compiler on Eclipse?
 
After setting up the robotrio and setting up the PC for this year, I ran into this problem in uploading the code. Also, what is different in Eclipse this year for FRC compared to last year's netbeans?
Buildfile: C:\Users\admin\workspace\EXAMPLE_ROBOT\build.xml
Trying to override old definition of task classloader
clean:
compile:
[mkdir] Created dir: C:\Users\admin\workspace\EXAMPLE_ROBOT\build
[echo] [athena-compile] Compiling src with classpath=C:\Users\admin/wpilib/java/current/lib/WPILib.jar:C:\Users\admin/wpilib/java/current/lib/NetworkTables.jar to build

BUILD FAILED
C:\Users\admin\wpilib\java\current\ant\build.xml:6 9: 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_25"

Total time: 1 second

What does this mean? BTW, first timer here....

Joe Ross 17-01-2015 20:06

Re: Can find the compiler on Eclipse?
 
See http://wpilib.screenstepslive.com/s/...roubleshooting

krieck 18-01-2015 22:25

Re: Can find the compiler on Eclipse?
 
When you download Java from Oracle, there are two flavors of downloads, the JRE and the JDK.
  • Java Runtime Environment (JRE), which contains enough java to execute programs.
  • Java Development Kit (JDK), which contains the compiler and other development tools. It may also be called the Software Development Kit (SDK).

You need the JDK to do the deployment. If you're seeing this error, it means that you don't have the JDK installed, or maybe you have it installed but Eclipse doesn't where it is.

Once you have the JDK installed, go into the Eclipse preferences under Java and "Installed JREs" and make sure your JDK is installed and set as the default. May also need to define a JAVA_HOME environment variable in your operating system that points to your installed JDK.


All times are GMT -5. The time now is 10:38.

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