Log in

View Full Version : build failed - build.xml class not found


yedidya03
16-06-2016, 16:02
I tried to compile my project in java and I have got :

Buildfile: C:\Users\FRC3211\Documents\2016 frc season\java_robot_programming\FirstRobotProject\bu ild.xml
Trying to override old definition of task classloader
clean:
[delete] Deleting directory C:\Users\FRC3211\Documents\2016 frc season\java_robot_programming\FirstRobotProject\bu ild
compile:
[mkdir] Created dir: C:\Users\FRC3211\Documents\2016 frc season\java_robot_programming\FirstRobotProject\bu ild
[echo] [athena-compile] Compiling src with classpath=C:\Users\FRC3211/wpilib/java/current/lib/WPILib.jar:C:\Users\FRC3211/wpilib/java/current/lib/NetworkTables.jar: to build

BUILD FAILED
C:\Users\FRC3211\wpilib\java\current\ant\build.xml :71: Class not found: javac1.8

Total time: 1 second

someone knows what is the problem?

Bkeeneykid
16-06-2016, 17:27
Do you have Java 1.8 installed?

mikets
16-06-2016, 18:15
Two things:
1. Have you installed JDK? In other words, did you following the "Getting Java" section in the following doc?
https://wpilib.screenstepslive.com/s/4485/m/13809/l/145002-installing-eclipse-c-java
2. Also, did you following the section "Setting up JDK in eclipse" section of the above doc?

In general, take a look at the above doc and make sure you have followed the instructions to get everything set up. The error you have means eclipse doesn't know where to find the Java compiler. So either you haven't installed it or you haven't told Eclipse where to find it.