• Menu
  • Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

JavaBeat

Java Tutorial Blog

  • Java
    • Java 7
    • Java 8
    • Java EE
    • Servlets
  • Spring Framework
    • Spring Tutorials
    • Spring 4 Tutorials
    • Spring Boot
  • JSF Tutorials
  • Most Popular
    • Binary Search Tree Traversal
    • Spring Batch Tutorial
    • AngularJS + Spring MVC
    • Spring Data JPA Tutorial
    • Packaging and Deploying Node.js
  • About Us
    • Join Us (JBC)
  • Java
    • Java 7
    • Java 8
    • Java EE
    • Servlets
  • Spring Framework
    • Spring Tutorials
    • Spring 4 Tutorials
    • Spring Boot
  • JSF Tutorials
  • Most Popular
    • Binary Search Tree Traversal
    • Spring Batch Tutorial
    • AngularJS + Spring MVC
    • Spring Data JPA Tutorial
    • Packaging and Deploying Node.js
  • About Us
    • Join Us (JBC)

Setup Groovy enVironment Manager (GVM)

October 8, 2013 //  by Krishna Srinivasan//  Leave a Comment

Groovy enVironment Manager (GVM) is a tool used for managing the multiple version of the software development kits in the Unix based systems. In the current version, it supports the groovy related development kits. Groovy software kits can be installed and configured using this tool. There is no setup available for the windows based systems. In simple terms, GVM is very much handy for installing the various version of Groovy, Grails, etc. and setting the default version used or switching to different versions by using the command. At present it supports the following:

  • Groovy
  • Grails
  • Griffon
  • Gradle
  • Groovyserv
  • Lazybones
  • vert.x

This tool can be installed on the following platforms.

  • Linux
  • Mac OSX
  • Cygwin
  • Solaris
  • FreeBSD (with bash installed)

When you install GVM, your system should have installed the http://curl.haxx.se/ already. Otherwise you can install it by typing the following command. In the below example, second statement is for installing the GVM in your system.

sudo apt-get install curl
curl -s get.gvmtool.net | bash

Install Software Using GVM

It is very simple to install using the above commands. Once installed, you can use the GVM commands and install the softwares supported by them (I have listed above in this article). You can specify any particular version details to install. If you are not passing the version details, it would install the latest version in the repository. Look at the below screenshot, when I type the command gvm install groovy, it has started installing the latest version of groovy 2.1.7 in my local. In the same way you can install the required software.

GVM  Groovy

Also you can add the already installed software to it. The following are commands important to remember.

$ gvm use grails 2.1.1  //Telling gvm to use specific version
$ gvm default grails 1.3.9 //Setting the default version to be used
$ gvm current grails  // Lists current version details
$ gvm selfupdate //This enables the auto update of GVM when new version is released
$ gvm version //Prints current version of GVM

The above commands are simple to understand and easy to to test it in your local environment. If you are working the Unix based systems, let’s try this tool if you are developing the groovy applications.

  • What is Groovy?
  • Spring and Groovy Integration

Category: GroovyTag: Groovy, GVM

About Krishna Srinivasan

He is Founder and Chief Editor of JavaBeat. He has more than 8+ years of experience on developing Web applications. He writes about Spring, DOJO, JSF, Hibernate and many other emerging technologies in this blog.

Previous Post: « Search DOM Tree using dojo.query
Next Post: Working With dojo/dom-construct – DOM construction API in DOJO »

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Follow Us

  • Facebook
  • Pinterest

FEATURED TUTORIALS

New Features in Spring Boot 1.4

Difference Between @RequestParam and @PathVariable in Spring MVC

What is new in Java 6.0 Collections API?

The Java 6.0 Compiler API

Introductiion to Jakarta Struts

What’s new in Struts 2.0? – Struts 2.0 Framework

JavaBeat

Copyright © by JavaBeat · All rights reserved
Privacy Policy | Contact