Friday, May 29, 2015

Installing Java JDK on Windows - Your first step towards Java Development

There are lot of help and tutorials available for you to install JDK and would recommend to follow the oracle help for the installation. But as a windows users, may follow below if you want to save some time

  1. Download JDK from below link
    1. http://www.oracle.com/technetwork/java/javase/downloads    
  2. Install JDK and JRE. Its a simple wizard.
  3. Setup following environment variables. 
    1. Go to My Computer, 
    2. Right click and select properties
    3. Click advance system settings
    4. Click Environment Variables
    5. Add following environment variable
      1. JAVA_HOME
      2. JRE_HOME
    6. Add following at the of you PATH (Environment) variable
      1. ;%JAVA_HOME%\bin
  4. Go to command prompt and type following command to test your setup
    1. java -version
    2. It should display the installed JDK version


Environment Variables


Path Variable

Installing Grails

I would really like the video at the following location

https://www.youtube.com/watch?v=Nu3GgjuUOtg

Following are steps for installing it on windows environment

  • Install JDK. 
    • You may use my other post to save some time :)
  • Download grails from below link
    • https://grails.org/download.html
  • Unzip files and copy to one location says c:\grails
  • Define environment variable
    • GRAILS_HOME and set it to path used in previous step
  • Add following at the of you PATH (Environment) variable
    • ;%GRAILS_HOME%\bin
  • Go to command prompt and type following command to test your setup
    • grails -version
      • It should display the installed grails version
    • cd %GRAILS_HOME%
      • it should take you to grails directory
    • grails create-app HelloWorld
      • It should create application name hello world. You can use any name for your application
    • cd HelloWorld
      • It should takes you to newly created application
    • grails run-app
      • It should start application. 
      • If firewall gives any warning then we should allow application to continue.
      • It will download all dependencies
    • goto http://localhost:8080/ to see your application started successfully or not