Go to Post I was cheering like mad during the last match on Einstein - I think the rest of my team thought I was crazy...or crazier than they thought I was before! - Sean Schuff [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 17-01-2015, 19:53
MRT45's Avatar
MRT45 MRT45 is offline
Registered User
FRC #0253 (Mills Robotics Team)
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2013
Location: CA
Posts: 17
MRT45 is an unknown quantity at this point
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....
Reply With Quote
  #2   Spotlight this post!  
Unread 17-01-2015, 20:06
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,586
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Can find the compiler on Eclipse?

See http://wpilib.screenstepslive.com/s/...roubleshooting
Reply With Quote
  #3   Spotlight this post!  
Unread 18-01-2015, 22:25
krieck's Avatar
krieck krieck is offline
Registered User
AKA: Keith
FRC #2846 (Firebears)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Minnesota
Posts: 49
krieck is an unknown quantity at this point
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.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 18:03.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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