Groovy 2 Quick Start for Ubuntu 14.04 LTS Linux
Hi! The Tutorial shows you Step-by-Step How to Install and Getting-Started with the Latest Groovy 2 on Ubuntu 14.04 Trusty Tahr LTS GNU/Linux Desktop.
Groovy is a Dynamic Language that has Additional power Features inspired by languages like Python, Ruby and Smalltalk like:
- Function Literals
- Support for Collections
- Support for Regular Expressions
- Support for XML Processing
It is Recommended to dispose of a Java 8 installation because Now Groovy 2 Supports the latest Oracle Java JDK 8 Specifications.
-
Open a Command Line Terminal Window
Ctrl+Alt+t
(Press “Enter” to Execute Commands) -
Download Latest Groovy 2.x Binary Release.
-
Double-Click on Archive and Extract into /tmp
Or from Command Line:
unzip -d /tmp/ $HOME/Downloads/groovy*.zip
-
Installing Groovy 2 on Ubuntu.
sudo su -c "chown -R root:root /tmp/groovy*"
sudo su -c "mv /tmp/groovy* /opt/groovy2"
-
Append Groovy2 to the User Path.
nano $HOME/.bashrc
Append:
export GROOVY_HOME=/opt/groovy2/nexport PATH=$GROOVY_HOME/bin:$PATH
Load the New Path:
bash
-
Test Groovy 2 Installation.
groovy -version
-
How to Install Recommended Oracle Java JDK8 on Ubuntu
-
Getting-Started with Groovy 2 Programming.