Something strange... any ideas?

Samson Chung <[email protected]> Tue, 22 Jul 2025 19:53:52 +0000
Newsgroups gmane.comp.java.ide.netbeans.user
Message-ID <YQBPR01MB107562A345E135DB573577930EE5CA@YQBPR01MB10756.CANPRD01.PROD.OUTLOOK.COM>
Guys,

I am on my path to relearn Spring MVC, etc... and I ran into something weird.

As someone suggested, I went to Spring initializr to generate a SpringBoot zip, and open it Netbeans, which was detected as a Maven project.

With extremely minor changes, such adding the following lines to the application class

@RestController
...
@GetMapping("/hello")
public String hello () {
Return "hey";
}

Within Netbeans, I would end up getting:

Error: Could not find or load main class ${start-class} Caused by: java.lang.ClassNotFoundException: ${start-class} Command execution failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)

But... if I were to do this in IntelliJ community edition, it works and deployed immediately using Spring's Built-in internal tomcat server.

Any ideas on why?

Stay Safe!
______________________
Samson Chung