Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
    
up vote 4 down vote accepted

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.

share|improve this answer

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
    
share|improve this answer

You must log in to answer this question.

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