Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
    
add comment

2 Answers

up vote 2 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
add comment

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.