Groovy,grails,netbeans Installation Configuration Manual

Source: Internet
Author: User
Tags command line manual windows download zip grails netbeans

This article is written for groovy and grails new people, and if you're already familiar with it, please stop, lest you delay your time, and if you have leisure, please criticize this article and correct me.

Groovy, a dynamic language that runs on the JVM, has syntax similar to Java syntax, is much loved by Java programmers, and supports Java syntax directly. Grails, a rails style framework based on groovy,spring and Hiberante, helps fast agile development of Web applications. Grails applications require spring and hibernate support, and for some non-advanced applications, ordinary developers do not need to master Spring and hibernate knowledge. NetBeans is the ide,6.5 version of Sun developed to support groovy and grails, but note that the so-called groovy plug-in is at best a toy. It's been despised by many Java people, compared to the NetBeans support for Ruby, which is said to be the best Ruby IDE. The next version of NetBeans 6.5 will support groovy and grails development, which means that after installing NetBeans, there is no need to toss up the download groovy creation, installation and configuration. If people who have been played before should be more aware of the meaning of built-in support. For NetBeans's progress and improvement in supporting groovy and grails, it's still a little bit encouraging, with the exception of idea, that free tools are not as satisfying as groovy and grails support.

Because the configuration may vary slightly from one environment to another, explain the version of the tool and the operating system that is involved in this article. Java6,groovy 1.5.6,grails 1.0.3,netbeans 6.5 M1, the operating system is Ubuntu 8.04. Windows and Ubuntu differ in configuration environment variables, and this article is a simple one, which is believed to be configured by Java programmers who use Windows. Please make sure your JDK is installed and the JDK version is over 1.5.

A setup configuration Groovy

Download the latest official version of 1.5.6,windows and Ubuntu from Groovy's official web site, download Zip files, and don't download those packaged exe,deb files that are now environmentally friendly, green and natural.

Unzip the downloaded Groovy-binary-1.5.6.zip, such as decompression installation to c:\groovy-1.5.6 (Windows) or/home/javaread/ groovy-1.5.6 (Ubuntu), then configure the system environment variables that are required to run groovy, add the system variables that are groovy_home, and point to Groovy's installation directory c:\groovy-1.5.6 (Windows) or/home/ javaread/groovy-1.5.6 (Ubuntu). Windows is not specifically, here's how Ubuntu sets the system variable: Open the/HOME/JAVAREAD/.BASHRC file with VI or GEDIT, append the following at the end of the file.

1groovy_home=/home/javaread/applications/groovy-1.5.6

2 path= $PATH: $GROOVY _home/bin:

3 Exportpathgroovy_home

Once configured, verify that groovy's installation configuration is successful. Groovy-v is executed on the system command line, and if you return the word groovy version:1.5.6 jvm:10.0-b22, the installation configuration is successful.

Then download the groovy document, extract it locally, and if there is a groovy document, NetBeans can have a way to explain it, otherwise it will not. This step is optional, see personal needs.

Two-Setup configuration Grails

Download the latest version from the grails official website 1.0.3,windows Download the zip compression format from here, and Ubuntu downloads the TAR/GZ compression format from here. Install the downloaded Grails-bin-1.0.3.zip or grails-bin-1.0.3.tar.gz uncompressed to c:\grails-1.0.3 (Windows) or/home/javaread/ grails-1.0.3 (Ubuntu).

Then again, configure the system environment variables needed to run grails. Similar to groovy, add a system variable named Grails_home to the Grails installation directory. The Ubuntu system also needs to append the following content to the/HOME/JAVAREAD/.BASHRC.

1 grails_home=/home/wayne/applications/grails-1.0.3

2 path= $PATH: $GRAILS _home/bin

3 Exportpath Grails_home

Plus the Java and groovy system configuration variables, the complete configuration should resemble the following.

1 Java_home=/usr/lib/jvm/java-6-sun

2 groovy_home=/home/javaread/applications/groovy-1.5.6

3 grails_home=/home/javaread/applications/grails-1.0.3

4 path= $PATH: $JAVA _home/bin: $GROOVY _home/bin: $GRAILS _home/bin

5 Exportpathjava_homegroovy_homegrails_home

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.