NavX breaks code

Our NavX will not work with this year’s WPILib. The line of code that imports the NavX library works, but when this line of code is added
AHRS navx = new AHRS();
we get the following output and never get the Driver Station green light for Robot Code:

********** Robot program starting **********
NT: could not open persistent file '/home/lvuser/networktables.json': No such file or directory
NT: Listening on NT3 port 1735, NT4 port 5810
NT: Got a NT3 connection from port 50958
NT: CONNECTED NT3 client '[email protected]:50958' (from
navX-Sensor Java library for FRC
java.lang.UnsatisfiedLinkError: no vmxHaljni in java.library.path: /usr/local/frc/third-party/lib
at java.base/java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.base/java.lang.Runtime.loadLibrary0(Unknown Source)
at java.base/java.lang.System.loadLibrary(Unknown Source)
at com.kauailabs.navx.frc.RegisterIOMau.<init>(
at com.kauailabs.navx.frc.AHRS.<init>(
at com.kauailabs.navx.frc.AHRS.<init>(
at frc.robot.Robot.<init>(
at edu.wpi.first.wpilibj.RobotBase.runRobot(
at edu.wpi.first.wpilibj.RobotBase.startRobot(
at frc.robot.Main.main(
pure virtual method called
terminate called without an active exception

We have the current NavX vendor library installed from

Thanks for your time.

You likely have the 2023.0.2 NavX library installed. Update to 2023.0.3.

1 Like

THANK YOU, sir. We did have 2023.0.2, and that was the issue. 2023.0.3 is working for us. We are back in business!

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.