- Install Ubuntu .
- Download GRAILS from https://grails.org/download .1) Copy the download Grails ZIP into OPT folder . Type this command on terminal
sudo cp grails-2.3.7.zip /opt and then type cd /opt .2) Run few commands in Terminal to install GRAILS . Suppose, I have GRAILS version grails-2.3.7.zip.To UNZIP GRAILS , run command sudo unzip grails-2.3.7.zip , this will create a folder named grails-2.3.7 inside OPT.Make a SOFT LINK for grails-2.3.7 , run command sudo ln -s grails-2.3.7 grails - Download GROOVY from http://groovy.codehaus.org/Download .1) Copy the download GROOVY BINARY ZIP into OPT folder . Type this command on terminal sudo cp groovy-2.1.5.zip /opt and then type cd /opt 2) Run few commands in Terminal to install GROOVY . Suppose, I have GROOVY file groovy-binary-2.1.5.zipTo UNZIP GROOVY , run command sudo unzip groovy-2.1.5.zip , this will create a folder named groovy-2.1.5 inside OPT.Make a SOFT LINK for groovy-2.1.5 , run command sudo ln -s groovy-2.1.5 groovy
- Download and Install JAVA using this command.sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
sudo apt-get install openjdk-7-jre - Download IntelliJ IDEA from http://www.jetbrains.com/idea/download .1) Copy the download IDEA tar into OPT folder . Type this command on terminal sudo cp ideaIU-13.tar.gz /opt and then type cd /opt 2) Run few commands in Terminal to install IDEA . Suppose, I have IDEA file ideaIU-13.tar.gzTo UNTAR IDEA , run command sudo tar -zxvf ideaIU-13.tar.gz , this will create a folder named idea-IU-133.193 inside OPT.Make a SOFT LINK for idea-IU-133.193 , run command sudo ln -s idea-IU-133.193 idea
- Setting the enviroment variable for GROOVY , GRAILS , JAVA , IDEA , put this setting at the bottom of .bashrc file present in home folder. Follow the steps to edit .bashrc.
Now your system is ready to work in GRAILS Framework.1) Type cd2) sudo gedit .bashrc
3) Paste this line at the bottom of .bashrc filePATH=$PATH:/opt/groovy/binPATH=$PATH:/opt/idea/binPATH=$PATH:/opt/grails/binPATH=$PATH:~/scriptsIDEA_JDK=/usr/lib/jvm/java-7-oracle; export IDEA_JDKJAVA_HOME=/usr/lib/jvm/java-7-oracle; export JAVA_HOMEGRAILS_HOME=/opt/grails; export GRAILS_HOMEexport JAVA_OPTS="-Djava.awt.headless=true -XX:MaxPermSize=128m -Xms812m -Xmx1400m -server -XX:+UseConcMarkSweepGC"export PATH
4) Save and exit .bashrc file.5) Compile the .bashrc file , type this command
cd
. .bashrc
Friday, September 12, 2014
Configure GRAILS , GROOVY , JAVA , IntelliJ IDEA in Ubuntu.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment