Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

install spring boot CLI in windows 7

I would like to set up a dev environment on my Windows 7 machine so i can create a spring-boot application. However, i'm having a hard time installing Spring-boot on windows.

This is what i have done so far: -Downloaded spring-boot CLI zip package and unzipped in C drive -JAVA_HOME variable set to c:\Program Files (x86)\Java\jdk1.6.0_14 -SPRING_HOME variable set to C:\spring-1.3.0.BUILD-SNAPSHOT -Added SPRING_HOME/bin to PATH environment variable

It says to add symlink to auto-completion script but i do not know how to do that. Not surprisingly when i test installation with "spring --version" command, it fails.

Anybody has done this before?

Thanks!

like image 218
roca323 Avatar asked Dec 24 '22 18:12

roca323


1 Answers

Instructions for setup are bit misleading for path setup.

For Windows, Environment variables section, need use %SPRING_HOME%\bin referencing in place of SPRING_HOME/bin for the system to pick up SPRING_HOME environment variable.

Where SPRING_HOME is an environment variable for specifying path to the spring boot directory. E.g. :- C:\Program Files\Spring\spring-1.2.7.RELEASE

Note: bin folder is not included in the SPRING_HOME.

I was able to get it up, here are screen grabs of process.enter image description here

Alternatively you can have the path setup directly without SPRING_HOME, just append the environment variable path with directory path of your "spring.bat" file C:\Program Files\Spring\spring-1.2.7.RELEASE\bin;.

like image 173
Abhijeet Avatar answered Dec 27 '22 09:12

Abhijeet