Create a groovy development environment

Source: Internet
Author: User
Tags grails

Create a groovy development environment

To establish a groovy development environment, follow these steps:
1) install JDK 5 or a later version.
· Set java_home environment variables after installation
· (Optional) add java_home/bin to the path environment variable to execute Java commands.
2) If you want to use eclipse, select eclipse3.1 or a later version.
· Install the subversion-plugin plug-in
· Subclipse plug-in, http://subclipse.tigris.org (Update site in http://subclipse.tigris.org/update)
· Subversive plug-in, 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 create an image from the command line, install ant 1.7
4) extract groovySource code
· If eclipse is used:
· Open the svn perspective of eclipse
· Browse SVN and view SVN Information
· Create a new repository and extract groovy source code
· If eclipse is not used, run the svn Co http://svn.codehaus.org/groovy/trunk/groovy/groovy-core from the command line
5) Create groovy
· Execute ant in the command line and create it successfully. If creation fails, check groovy/target/test-reports.
6) Done!

Set the groovy Environment
1. Download groovy-binary-1.5.6.zip and decompress it. For example, C:/groovy
2) set the policy_home environment variable. in the Windows operating system, it is as follows:
· Add a system variable named yy_home and set the value to C:/groovy.
· Enter the command "set" on the command line to check whether the environment variables have been correctly set
3) (optional) add % yy_home %/bin to the system path.
4) run the yyconsole. BAT file in the bin directory. If the file is executed normally, it indicates that it is successful.

Set an optional groovy package
1) jtds-version.jar
Database driver for SQL Server or Sybase
2) hsqldb-version.jar
Database driver for HSQLDB

Installation and setting of grails
1. download the latest version of grails, such as grails-bin-1.0.2.zip.
2) decompress the package to C:/grails.
3) Create the grails_home environment variable and set its value to C:/grails.
4) java_home environment variables are also required
5) add % grails_home %/bin to the path environment variable.
6) Enter grails in the command line to view the displayed content.

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.