Groovy on thanks to GVM

I recently came across, a nice little service that allows you to instantiate an Ubuntu server for testing, for 35 minutes, on Amazon EC2. You click on the green button, and you're given an account and a password, as well as the details to connect onto the machine through SSH.

Please note that the service seems to be victim of its success, as requesting a new server takes more and more time it seems.

I immediately thought about installing and launching Groovy on those remote servers, using GVM. However, there's no "unzip" command installed, and there's no JDK as well. So there are a few extra steps to be taken. I wanted to blog about the details (which I'm actually doing now!), but Tim Yates beat me to it with his detailed instructions!

So my task is now simplified, and I'll simply copy the instructions here, thanks Tim!

sudo apt-get install unzip

  • And when that's done, run:
sudo apt-get install openjdk-7-jre-headless
export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64

  • Then, install GVM:
curl -s | bash

  • And source the GVM script:
source "/home/ubuntu/.gvm/bin/"

  • Install Groovy with GVM:
gvm install groovy

  • And test:
groovy -e "println 'Hello'"

VoilĂ  !


© 2012 Guillaume Laforge | The views and opinions expressed here are mine and don't reflect the ones from my employer.