I’ve just written some basic velocity drive code which I’d like to begin testing using the simulator provided with WPILib. I’ve been following this guide by WPILib but haven’t been able to make it work.
After getting the green “build successful” message, I’m getting this error:
java.io.IOException: wpiHaljni could not be loaded from path or an embedded resource. attempted to load for platform /osx/x86-64/
at edu.wpi.first.wpiutil.RuntimeLoader.loadLibrary(RuntimeLoader.java:79)
at edu.wpi.first.hal.JNIWrapper.<clinit>(JNIWrapper.java:25)
at edu.wpi.first.wpilibj.RobotBase.startRobot(RobotBase.java:207)
at frc.robot.Main.main(Main.java:27)`
According to @Peter_Johnson, the simulator GUI should work fine for Mac, so I don’t think that’s the issue. I appreciate any help.
Edit:
(this is my first attempt at any kind of software-based testing, so please let me know if you have any other tips on how to go about testing something like this)