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
Jimmyy
July 14, 2023, 5:45pm
2
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?
swurl
July 14, 2023, 6:11pm
8
The src/main/deploy/robot
directory contains your robot code; this directory should be moved to src/main/java/frc/robot
.
1 Like
Jimmyy
July 14, 2023, 6:12pm
9
my theory is that all your code is in the deploy folder?? i dont think its in the proper folder structure
mine ^
yours^
the files are not in the right places
1 Like
system
Closed
July 13, 2024, 6:12pm
10
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.