DEV Community

Discussion on: Java Enterprise 101: Building a REST Server with Spring Boot

 
martinhaeusler profile image
Martin Häusler

Ok then it is very likely the JAVA_HOME environment variable that is not set up. Gradle is unfortunately rather picky when it comes to the setup and the environment variables. Here's a tutorial on how to set it up on windows (as you use the *.bat file I assume that is what you need):

mkyong.com/java/how-to-set-java_ho...

If that still doesn't work, feel free to try Maven instead; for this tutorial it really does not matter.