Recently I got a chance to work on a project based on GRAILS. At first I was tense and even I have an argument with my Project lead, that why he is giving me a new challenge? Instead of listening to me he just told me learn the framework and build solution required by client as per requirement.
So at last I started goggling with the GRAILS, like searching for tutorials, how to configure it and on top How I am going to create application using Eclipse. At last when I had enough of the taste, I just thought of making a bunch of tutorials and keep it one place. Given below is the first part of tutorial covering the installation and configuring GRAILS at your own machine.
1. Configure Java
Before moving to installation of GRAILS ensure that you have a Java installed, If not download it from http://www.oracle.com/technetwork/java/javase/downloads/index.html and install it. After then configure the JAVA_HOME environment variable at your jdk installation directory. For Example if you installed jdk in C:\Java6\jdk1.6.0_10 then your JAVA_HOME variable will point to C:\Java6\jdk1.6.0_10. After then modify the environment variable PATH, In windows append %JAVA_HOME%\bin with a semi-colon(;) to it. Once it is done check by typing java -version at command prompt, If it is configured correctly It will be displaying the version you have installed.
2. Configure GRAILS
After installation and configuring JAVA, download the latest version of GRAILS from http://grails.org/Download. Unzipped the GRAILS zipped download in a new directory. Make sure none of the directory have blank space in them. After then create a new environment variable GRAILS_HOME and point it to your GRAILS directory. Example If you have unzipped GRAILS at C:\grails, then GRAILS_HOME will have the value C:\grails. Also modify the PATH variable and append %GRAILS_HOME%\bin to it(Windows).
Once it is done type grails at command prompt to verify that Grails is installed and ready to use. If successfully installed and configured it will display welcome message from GRAILS and will display the version installed.
No comments:
Post a Comment