Java Java Objects Harnessing the Power of Objects Filling the Dispenser

Arturs Certuks
Arturs Certuks
4,820 Points

Could not find or load main class Example. - Can someone help with this, please???

After doing everything like in the video an did the "clear && javac.........." at first it was showing some errors, found them and fixed them while watching video over and over again, but now everything seems to be correct, but it's showing -> "Could not find or load main class Example."

Anyone has an idea what could be the problem?

Max Danger
Max Danger
9,524 Points

It took me some time to find the solution so I guess it is helpful to show the answer here: remove the last "." when writing "clean && javac..." unlike in the video. The dot at the end of "Example." changes something with the file's path.

Good luck!