Hi, we recently bought the SDS Swerve Drive Kit (The MK4) and I am currently trying to ‘import’ the template from their github. I think I’ve done everything correctly, but I am getting a runtime error:
********** Robot program starting **********
Unhandled exception: java.lang.ClassNotFoundException: edu.wpi.first.wpiutil.RuntimeLoader
Error at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown Source): Unhandled exception: java.lang.ClassNotFoundException: edu.wpi.first.wpiutil.RuntimeLoader
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown Source)
The robot program quit unexpectedly. This is usually due to a code error.
The above stacktrace can help determine where the error occurred.
See Reading Stacktraces — FIRST Robotics Competition documentation for more information.The startCompetition() method (or methods called by it) should have handled the exception above.
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Unknown Source)
at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
at com.revrobotics.jni.RevJNIWrapper.(RevJNIWrapper.java:42)
at com.revrobotics.CANSparkMaxLowLevel.(CANSparkMaxLowLevel.java:38)
at frc.robot.subsystems.drivingSystem.(drivingSystem.java:25)
at frc.robot.RobotContainer.(RobotContainer.java:21)
at frc.robot.Robot.robotInit(Robot.java:30)
at edu.wpi.first.wpilibj.TimedRobot.startCompetition(TimedRobot.java:107)
at edu.wpi.first.wpilibj.RobotBase.runRobot(RobotBase.java:373)
at edu.wpi.first.wpilibj.RobotBase.startRobot(RobotBase.java:463)
at frc.robot.Main.main(Main.java:27)
Warning at edu.wpi.first.wpilibj.RobotBase.runRobot(RobotBase.java:388): The robot program quit unexpectedly. This is usually due to a code error.
The above stacktrace can help determine where the error occurred.
See Reading Stacktraces — FIRST Robotics Competition documentation for more information.
Error at edu.wpi.first.wpilibj.RobotBase.runRobot(RobotBase.java:395): The startCompetition() method (or methods called by it) should have handled the exception above.
NT: server: client CONNECTED: 10.40.60.188 port 57670
pure virtual method called
terminate called without an active exception
It seems to be coming from the Rev Library, and this seems to be caused by outdated libraries, but I am using the latest libraries provided by all manufacturers, so I really have no clue what could be causing this. Code is at GitHub - R0NAM1/FRC_2022_Rapid_React: 2022 Game Year (Cloned From 2021).