Create a groovy development environment

Source: Internet
Author: User
Tags svn grails

Create a groovy development environment


To establish the groovy development environment, follow the steps below:
1 Install JDK5 and above version
· Setting up Java_home environment variables after installation
· Optionally, add Java_home/bin to the PATH environment variable to execute the Java command.
2 If you want to use Eclipse, select Eclipse3.1 and more versions
· Installing the Subversion-plugin Plugin
· Subclipse plugin, http://subclipse.tigris.org (update site in http://subclipse.tigris.org/update)
· Subversive plugin, also supports subversion,http://www.polarion.org/index.php?page=overview&project=subversive
(Update site in http://www.polarion.org/projects/subversive/download/1.1/update-site/)
3 If you want to build from the command line, install ant 1.7
4 Extract Groovy Source code
· If you are using eclipse:
· Open the SVN perspective for Eclipse
· Browse SVN, view svn information
· Create a new repository to extract groovy source code
· If eclipse is not used, from the command line: SVN co http://svn.codehaus.org/groovy/trunk/groovy/groovy-core
5) to establish groovy
· Execute ant at the command line and build successfully. If Setup fails, view Groovy/target/test-reports
6) Done.

Set up Groovy Environment
1) Download Groovy-binary-1.5.6.zip, decompression. such as: C:/groovy
2 Set the GROOVY_HOME environment variable, under the Windows operating system, as follows:
· Add a system variable named Groovy_home, set its value to C:/groovy
· Enter the command "set" at the command line to check whether the environment variable is set correctly
3) (optional) Add%groovy_home%/bin to System path
4 Run the Groovyconsole.bat file under the bin directory, such as normal execution, indicating success.

Set up an optional package for groovy
1) Jtds-version.jar
Database drivers for SQL Server or Sybase
2) Hsqldb-version.jar
Database-driven for HSQLDB

Grails Installation and Setup
1 Download grails latest version, such as Grails-bin-1.0.2.zip
2) Extract to C:/grails
3 Create the GRAILS_HOME environment variable and set its value to C:/grails
4) Java_home environment variables also need
5 Add%grails_home%/bin to the PATH environment variable in addition
6 Enter grails at the command line to see what is displayed

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.