Yes, that was already unzipped. I didn’t use it ‘as a zip’ file…

Basically, it is just Spring boot… For some strange reasons, the Netbeans 
picked up it is Maven and started downloading the required sources. So from 
that point of view, it is ‘working as expected’.

I can’t seem to get it to run. From what I can tell, that is a string 
replacement that failed at some point during runtime.

I always assumed NetBeans routed the commands to the console.

Due to my current time limitations, I am switching over to IntelliJ for now, if 
anyone have any ideas, I’d be happy to come back to NetBeans. 😊 After all, I’ve 
been using NetBeans for over 15 years.

Stay Safe!
______________________
Samson Chung

From: Stephen Parry <sgpa...@mainscreen.com>
Sent: Wednesday, July 23, 2025 6:39 AM
To: users@netbeans.apache.org
Subject: Re: Something strange... any ideas?

[EXTERNAL EMAIL - USE CAUTION. This email is not from Durham College or Ontario 
Tech. Do not click links, open attachments, or reply, unless you recognize the 
sender's email address and know the content is safe!]
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<mailto: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