Issue with 2022 FRC Driver Station and WPILib - Error Error: Could not find or load main class frc.robot.Main

I’ve updated WPILib to version 2022.1.1 and FRC Driver Station 22.0. RoboRio image is FRC_roboRio_2022_v3.0.
After deploying code to rio, the we get an error message in the rioLog.
Error: Could not find or load main class frc.robot.Main
Caused by: java.lang.ClassNotFoundException: frc.robot.Main
I’ve recreated the project multiple times using the WPI create a new project feature but the same message every time. There are no other errors in the code.
Main project looks like this

package frc.robot;
import edu.wpi.first.wpilibj.RobotBase;
public final class Main {
  private Main() {}
  public static void main(String... args) {
    RobotBase.startRobot(Robot::new);
  }
}

Update there was a new url for the ctre website that may have been causing the issue
https://maven.ctr-electronics.com/release/com/ctre/phoenix/Phoenix-frc2022-latest.json

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