guide: Installation guide
Before Install, system dependencies:
-
A Linux, Apple or Windows-based operating system:
- Apple, Mac OS X (mine is Max OS X)
-
A Sun, JRocket or IBM Java 5 or Java 6 installation, with the $JAVA_HOME environment variable pointing to the installation:
But we install JAVA 7:
guide:easy way to install JAVA 7- download Java SE 7u75/76 -> JDK -> Mac OS X x64
- install .dmg file your Mac OS
-
check installed Java version
# check java version $ java -version java version "1.7.0_75" Java(TM) SE Runtime Environment (build 1.7.0_75-b13) Java HotSpot(TM) 64-Bit Server VM (build 24.75-b04, mixed mode) $ javac -version javac 1.7.0_75
-
set JAVA_HOME path
write your shell startup file this code:# i use zsh $ vi ~/.zshrc export JAVA_HOME=$(/usr/libexec/java_home -v 1.7)
guide: change java versions
-
Apache Maven 2.0.9 or above installed and in the path
# search maven $ brew search maven maven maven-shell homebrew/versions/maven2 homebrew/versions/maven31 homebrew/versions/maven30 homebrew/completions/maven-completion # install maven version 2 $ brew install homebrew/versions/maven2 ==> Installing maven2 from homebrew/homebrew-versions ==> Downloading http://archive.apache.org/dist/maven/binaries/apache-maven-2.2.1-bin.ta ######################################################################## 100.0% ==> Caveats WARNING: This older version will conflict with Maven if installed at the same time. ==> Summary 🍺 /usr/local/Cellar/maven2/2.2.1: 10 files, 3.1M, built in 2 seconds # check installed maven version $ mvn -v Apache Maven 2.2.1 (r801777; 2009-08-07 04:16:01+0900) Java version: 1.7.0_75 Java home: /Library/Java/JavaVirtualMachines/jdk1.7.0_75.jdk/Contents/Home/jre Default locale: en_US, platform encoding: UTF-8 OS name: "mac os x" version: "10.10.2" arch: "x86_64" Family: "mac"
guide: change apache maven versions
Install Roo 1.2.5
Download Spring-Roo
Download spring-roo version 1.2.5
Install Spring-Roo
# unzip file (not sudo!!!!)
$ unzip spring-roo-1.2.5.RELEASE
# edit .zshrc
$ vi ~/.zshrc
# Roo
export ROO_HOME=$HOME/spring-roo-1.2.5.RELEASE
export PATH=${PATH}:$ROO_HOME/bin
# create a symbolic link
$ sudo ln -s $ROO_HOME/bin/roo.sh /usr/bin/roo
Verify Roo has been installed correctly
$ mkdir roo-test
$ cd roo-test
$ roo quit
____ ____ ____
/ __ \/ __ \/ __ \
/ /_/ / / / / / / /
/ _, _/ /_/ / /_/ /
/_/ |_|\____/\____/ 1.2.5.RELEASE [rev 8341dc2]
Welcome to Spring Roo. For assistance press TAB or type "hint" then hit ENTER.