79494429

Date: 2025-03-08 13:14:32
Score: 1
Natty:
Report link

I had the same problem with Java Maven, Spring Boot when I tried a demo application. I use Netbeans. The class path error continued despite adding "<mainClass>fully.qualified.MainClass</mainClass>" in the pom.xml as suggested.

Then I right clicked on the project > Set Configuration > Customize...

And in the Customize window, Select Main Class. This solved the problem and the project started to run without class path error.

Set project configuration selection

select main class window

Reasons:
  • Whitelisted phrase (-1): I had the same
  • Probably link only (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Gaurang