Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

./mvnw spring-boot:run command displays a "not found" error

thi command for running the server doesn`t work and displays: JAVA_HOME not found in your environment

error

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Go to start, then Edit the system Environment Variables

Then go to Advanced tab, press Environment Variables

Click on New.. at System Variables half

add JAVA_HOME at variable name, and $PATH at variable value

$PATH is where you have java installed, It Should be something like this C:\Java\jdk1.8.0_291

A simpler solution would be using CMD run as administrator

setx JAVA_HOME "C:\Java\jdk1.8.0_291" /M

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading