I downloaded the advantage kit talon fx swerve template and tried simulating robot code, it returns, “java.io.IOException: wpiutiljni could not be loaded from path.
attempted to load for platform /windows/x86-64/”
" A dynamic link library (DLL) initialization routine failed" as well as "A common cause of this error is missing the C++ runtime.
Download the latest at Latest supported Visual C++ Redistributable downloads | Microsoft Learn
at edu.wpi.first.util.RuntimeLoader.loadLibrary(RuntimeLoader.java:44)
at edu.wpi.first.util.WPIUtilJNI.<clinit>(WPIUtilJNI.java:44)
at edu.wpi.first.wpilibj.RobotBase.startRobot(RobotBase.java:468)
at frc.robot.Main.main(Main.java:32)"
After re installing the c++ runtime I got the same error, Not sure if its related but I also have to delete the generated AutoLogged classes.
Thank you so much for helping!