Issues simulating advantage kit swerve template

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!

Using the wrong JDK could lead to this error message.
Can you check that you are using the JDK in C:\\Users\Public\wpilib\2025\jdk?

1 Like

I don’t have the 2025 folder, I imagine that’s the issue.
edit: Just downloaded 2025 and it worked perfect thank you!

1 Like