How to Set Groovy_Home Environment Variable on Ubuntu
I Am a Novice, Who Is New to Linux and I Am Trying to Set Groovy_Home Environment Variable. Note Sure If This Is the Right Step: Groovy_Home='/Usr/Share/Groovy'...
I am a novice, who is new to Linux and I am trying to set GROOVY_HOME environment variable. Note sure if this is the right step:
GROOVY_HOME='/usr/share/groovy'
Also trying to add $GROOVY_HOME/bin to my $PATH environment variable, but I am not too sure on how to do this. Any ideas/steps on what to do would be appreciated.
1 Answer
Create the file /etc/profile.d/groovy.sh by opening a terminal window and running this command:
sudo -H gedit /etc/profile.d/groovy.sh
Give the file this contents:
export GROOVY_HOME=/usr/share/groovy
PATH="$PATH:$GROOVY_HOME/bin"
Then save, log out and log in again.