I have not used a Spring boot zip before, but my guess is that it will need 
extracting before opening or importing rather than just opening. Opening, 
especially on Windows, will end up using the OS built-in zip folder handling, 
which does not work for Netbeans projects. Did you use File -> Import from Zip? 

On 22 July 2025 20:53:52 BST, Samson Chung <samson.ch...@durhamcollege.ca> 
wrote:
>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

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

Reply via email to