Error Main.java is not in the classpath of project

Hello fellows,

We are having some trouble with an error and our code that we believe isn’t allowing us to send our robot code to our robot. I was hope someone could help us out with it.

Main.java is not on the classpath of project 3865SwerveDrive2023, only syntax errors are reported

  • Error: Could not find or load main class frc.robot.Main
  • Caused by: java.lang.ClassNotFoundException: frc.robot.Main

Try to clean out the workpace
clean out Java language server workspace command hotkey: ctrl-shift-p

We seem to still be getting this error.

Error: Could not find or load main class frc.robot.Main
Caused by: java.lang.ClassNotFoundException: frc.robot.Main

Where are you getting this error message?/How are you running the project?

We are getting the error through RioLog and it run by WPLILib:Deploy Robot Code.

Is your project on GitHub or somewhere else online?

Its on github.

The src/main/deploy/robot directory contains your robot code; this directory should be moved to src/main/java/frc/robot.

1 Like

my theory is that all your code is in the deploy folder?? i dont think its in the proper folder structure
image
mine ^
image
yours^
the files are not in the right places

1 Like

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