|
class file has wrong version 52.0
Hello all! I have been trying to deploy code to this year's robot but have been receiving an error when I attempt to do so. The compiler spits this out every time:
Code:
Buildfile: /Users/324876/Documents/workspace/Tank Drive/build.xml
Trying to override old definition of task classloader
clean:
[delete] Deleting directory /Users/324876/Documents/workspace/Tank Drive/build
compile:
[mkdir] Created dir: /Users/324876/Documents/workspace/Tank Drive/build
[echo] [athena-compile] Compiling src with classpath=/Users/324876/wpilib/java/current/lib/WPILib.jar:/Users/324876/wpilib/java/current/lib/NetworkTables.jar: to build
[javac] Compiling 1 source file to /Users/324876/Documents/workspace/Tank Drive/build
[javac] /Users/324876/Documents/workspace/Tank Drive/src/org/usfirst/frc/team4301/robot/Robot.java:4: cannot access edu.wpi.first.wpilibj.SampleRobot
[javac] bad class file: edu/wpi/first/wpilibj/SampleRobot.class(edu/wpi/first/wpilibj:SampleRobot.class)
[javac] class file has wrong version 52.0, should be 50.0
[javac] Please remove or make sure it appears in the correct subdirectory of the classpath.
[javac] import edu.wpi.first.wpilibj.SampleRobot;
[javac] ^
BUILD FAILED
/Users/324876/wpilib/java/current/ant/build.xml:71: Compile failed; see the compiler error output for details.
Total time: 2 seconds
It is just one of the example programs, so I know that there is not a problem with my code. Has anybody seen this before? What should I do to fix it?
__________________
2010: FRC 3043, Build Assistant
2011: FRC 3043, Head of Minibot subteam; FLL 12762, Team Captain
2012: FRC 3043, Electrical; FLL 12762, Team Captain; FTC 5670, Team Captain
2013: FRC 4301, Electrical, Team Co-Captain
2014: FRC 4301, Electrical/Programming, Team Co-Captain
2015: FRC 4301, Electrical/Programming, Team Captain
2016: FRC 4301, Chief Technical Officer; FTC 10860, 10861, and 11004: Mentor. Winner, Hub City Regional (3310 & 4063)
|