FRO5401 / CVTestRobot

Robot side of CVTest
0 stars 0 forks source link

Crashing robot #1

Open kjm16216 opened 7 years ago

kjm16216 commented 7 years ago

Error message below

Djharts commented 7 years ago

ERROR 1 ERROR Unhandled exception: java.lang.NullPointerException at [org.usfirst.frc.team5401.robot.subsystems.ExampleSubsystem.DisplayTables(ExampleSubsystem.java:23), org.usfirst.frc.team5401.robot.commands.ExampleCommand.execute(ExampleCommand.java:34), edu.wpi.first.wpilibj.command.Command.run(Command.java:243), edu.wpi.first.wpilibj.command.Scheduler.run(Scheduler.java:206), org.usfirst.frc.team5401.robot.Robot.teleopPeriodic(Robot.java:106), edu.wpi.first.wpilibj.IterativeRobot.startCompetition(IterativeRobot.java:130), edu.wpi.first.wpilibj.RobotBase.main(RobotBase.java:247)] edu.wpi.first.wpilibj.RobotBase.main(RobotBase.java:249) ERROR Unhandled exception: java.lang.NullPointerException at [org.usfirst.frc.team5401.robot.subsystems.ExampleSubsystem.DisplayTables(ExampleSubsystem.java:23), org.usfirst.frc.team5401.robot.commands.ExampleCommand.execute(ExampleCommand.java:34), edu.wpi.first.wpilibj.command.Command.run(Command.java:243), edu.wpi.first.wpilibj.command.Scheduler.run(Scheduler.java:206), org.usfirst.frc.team5401.robot.Robot.teleopPeriodic(Robot.java:106), edu.wpi.first.wpilibj.IterativeRobot.startCompetition(IterativeRobot.java:130), edu.wpi.first.wpilibj.RobotBase.main(RobotBase.java:247)] WARNING: Robots don't quit!

kjm16216 commented 7 years ago

https://github.com/frc1418 look at their 2016 robot, to see how they're pulling data from network tables and using it.

kjm16216 commented 7 years ago

BUILD FAILED C:\Users\Kevin\wpilib\java\current\ant\build.xml:92: 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_40"

Total time: 6 seconds