Go to Post The "line" is the point at which we've raised the floor so high that the advanced teams are hitting the ceiling. The ceiling is pretty darned high (and the GDC keeps raising it), so I don't think we're in danger of that any time soon. - EricVanWyk [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 19-01-2016, 09:31
Ltwolf20 Ltwolf20 is offline
Registered User
FRC #4796
 
Join Date: Jan 2016
Location: Massachusetts
Posts: 9
Ltwolf20 is an unknown quantity at this point
Java "bad class file" issue

So I recently attended the 2016 FRC Quick Build and attended the Java programming workshop. After following the code the instructor gave as well as making a few alterations and additions specific to my team's robot, the code shows no errors or alerts, however when I go to run the program through WPILIB Java Deploy it fails and I get this message.

Buildfile: /Users/ProgrammingWolf/Documents/workspace/TestRobot/build.xml
Trying to override old definition of task classloader
clean:
[delete] Deleting directory /Users/ProgrammingWolf/Documents/workspace/TestRobot/build
compile:
[mkdir] Created dir: /Users/ProgrammingWolf/Documents/workspace/TestRobot/build
[echo] [athena-compile] Compiling src with classpath=/Users/ProgrammingWolf/wpilib/java/current/lib/WPILib.jar:/Users/ProgrammingWolf/wpilib/java/current/lib/NetworkTables.jar: to build
[javac] Compiling 8 source files to /Users/ProgrammingWolf/Documents/workspace/TestRobot/build
[javac] /Users/ProgrammingWolf/Documents/workspace/TestRobot/src/org/usfirst/frc/team4796/robot/OI.java:3: cannot access edu.wpi.first.wpilibj.Joystick
[javac] bad class file: edu/wpi/first/wpilibj/Joystick.class(edu/wpi/first/wpilibj:Joystick.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.Joystick;
[javac] ^

BUILD FAILED
/Users/ProgrammingWolf/wpilib/java/current/ant/build.xml:71: Compile failed; see the compiler error output for details.

Total time: 1 second



I am not quite sure how to fix this error.
Reply With Quote
 


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 10:18.

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