Friday, September 12, 2014

Configure GRAILS , GROOVY , JAVA , IntelliJ IDEA in Ubuntu.

  1. Install Ubuntu .
  2. 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
  3. 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
  4. 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
  5. 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
  6. 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.
    1) Type cd2) sudo gedit  .bashrc
    3) Paste this line at the bottom of .bashrc file
            PATH=$PATH:/opt/groovy/bin
            PATH=$PATH:/opt/idea/bin
            PATH=$PATH:/opt/grails/bin
            PATH=$PATH:~/scripts
            IDEA_JDK=/usr/lib/jvm/java-7-oracle; export IDEA_JDK
            JAVA_HOME=/usr/lib/jvm/java-7-oracle; export JAVA_HOME
           GRAILS_HOME=/opt/grails; export GRAILS_HOME
           export 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 
    Now your system is ready to work in GRAILS Framework.

No comments:

Post a Comment