I thank you in advance for your help
I am currently starting a Spring Boot project (Gradle) and when I run the ./gradlew bootRun
command on my VScode terminal, I get the following message:
APPLICATION FAILED TO START
Description:
Web server failed to start. Port 8080 was already in use.
Action:
Identify and stop the process that's listening on port 8080 or configure this application to listen on another port.
Task :bootRun FAILED
FAILURE: Build failed with an exception.
- What went wrong: Execution failed for task ':bootRun'.
Process 'command '/Library/Java/JavaVirtualMachines/jdk-17.0.5.jdk/Contents/Home/bin/java'' finished with non-zero exit value 1
- Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
The problem is that I wasn't using my port 8080 at all (unless I'm mistaken, and if I am I don't know how to check it).
I feel more like I have a problem with my JAVA.
I will be very grateful to you for helping me find a solution to this problem. Thanking you in advance :)
Windows
netstat -aon | findstr 8080
Unix/Linux/Mac
lsof -i :8080
Then you can proceed/kill with (process explorer/)
tasklist/ps
... Thx to: