Installing Groovy and Grails on Linux with gvm

## Requirements: Java jre installed. You can learn how to install java in:

https://itbinnacle.wordpress.com/2015/02/25/install-and-configure-java-on-linux/

## Download and install Groovy enVironment Manager

curl -s get.gvmtool.net | bash

## restart your console or excecute this command

source "/home/phonnz/.gvm/bin/gvm-init.sh"

## install groovy with gvm

gvm install groovy

## install grails with gvm

gvm install grails

## Sometimes you can get the error “unable to locate the java compiler com.sun.tools.javac.Main while running grails app”. Just set the CLASSPATH variable to tools.jar

CLASSPATH=/usr/local/jdk1.8.0_05/lib/tools.jar 
## (It depends where is your java jre)
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s