PathPlanner 2024 beta returning java.lang.IncompatibleClassChangeError

Our git repo

For this offseason we were trying to implement PathPlanner, we we decided to go ahead and write code for the 2024 beta version that just released. However, we have a problem where when we enable auto, this error occurs:
Error at java.base/java.lang.ClassLoader.defineClass1(Native Method): Unhandled exception: java.lang.IncompatibleClassChangeError: class com.pathplanner.lib.commands.FollowPathWithEvents has interface edu.wpi.first.wpilibj2.command.Command as super class.

We currently using WPLIB 2023, and a quick google search does reveal, that this is mostly likely a version mismatch error. I don’t see anywhere where the version might be wrong, so any tips or advice would be appreciated!

You’re on the right track with the version mismatch. Pathplanner 2024 beta is almost certainly built against the wpilib 2024 beta.

1 Like

Ok thank you! We will try that next.

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