I’m using Eclipse with the Processing library, I made the project on a different computer and tried to move it to my home computer.
When I try to run it, I get the error:
Error: Could not find or load main class Control.Main
Caused by: java.lang.NoClassDefFoundError: processing/core/PApplet
I get the same error trying to run code from a completely separate project using the library, too.
It’s worth noting that jogl-all.jar was corrupt in both the version I had originally and the version I re-downloaded.
Things I’ve tried:
-Re-downloading the library
-Cleaning the project
-Compiling a sketch with Processing’s editor and grabbing the jar files (fixed the jogl-all.jar issue)
-Making sure the classpath is correct
-Copying over the exact .jar files for the library from the original version of the program
-Begging StackOverflow for help
Here’s the code I have for setting up the library:
// Tells the library to use this class as the main class
public static void main(String[] args) {
PApplet.main("Control.Main");
}
// Sets the window size and type
public void settings() {
fullScreen(P3D);
}