Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialRony Gan
829 PointsGetting Error:
Error: Could not find or load main class Example.java while running the program
Shane Robinson
7,324 PointsAs Philip stated we will need the code for your classes since it could be a number of issues. The most likely is that you made a typo somewhere, like misspelling Example at some point or some other small error like that.
Rafael Cortes
1,174 PointsSounds like you deleted a file of didn't link the methods to communicate with the main java file.
John Paige
7,436 PointsI had the same issue a few minutes ago. I spell-checked both classes and then spell checked what i typed in the console, to realize i put "clear %% javac Example.java && java Example" I changed it and it worked.
Enej Lah
Java Web Development Techdegree Student 957 PointsShow us the code by updating your problem, then I'll try to figure, what's wrong.
Philip Gales
15,193 PointsPhilip Gales
15,193 PointsCan you list your code here for each class?