5

I'm a new user to Ubuntu! so I need your help. How do I install Java and Groovy in Ubuntu?? Please give step by step instructions.

1

2 Answers 2

5

This really couldn't be simpler in Ubuntu. First open a terminal window:

Applications->Accessories->Terminal

then in the window that comes up type:

user@computer:~$ sudo apt-get install groovy

Enter your password when it asks for it, and enter Y when it asks you if you want to continue.

Groovy will download, along with all its requirements (including Java) and install automatically.

1

Although automatic install is really nice feature, the repository version of Groovy may be not the current one.

If you want to be sure about the version you will install a bit more complicated method is necessary.

  • Download latest zip binary release from Groovy site and unzip it where do you like
  • Add groovy location to the path. To do this edit the ~/.profile file and add following lines at the end:

    export GROOVY_HOME="/path/to/the/place/you/extracted/the/zip"
    PATH="$GROOVY_HOME/bin:$PATH"
    
  • Logout and login or in terminal launch the command:

    source .profile
    
0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .