''gradle' is not recognized as an internal or external command when trying to build jar file
I am trying to create a jar file so I can upload my code on aws however when I type in /gradle bootJar I get a gradle not recognized error. I tried to install gradle but nothing is working. This is the error I get below: enter image description here
Solution 1:[1]
From the gradle task you're trying to run, I assume that you that you're running a spring boot project.
Also from your screenshot, I can see that you don't have gradle installed in your machine. But that should not be an issue since spring boot projects normally include a gradle wrapper.
Make sure that you have the gradle folder and gradlew.bat file in the root folder of your project. In the cmd window, cd to the project location and run command gradlew bootJar.
Remember to use gradlew.bat, not gradle.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Huu Phuong Vu |
