Vaadin 8 on Grails 3
  • Introduction
  • Project setup
    • Environment setup
      • Unix based systems
      • Windows
    • Creating Project
      • Command line
      • IntelliJ IDEA
    • Plugin Configuration
      • UI class
      • URL mapping
      • Production mode
      • Async support
      • Themes
      • SASS compilation
      • Widgetset compilation
      • Servlet class
      • Spring component scan
      • UI provider
      • Open session in view
    • Clean up
    • Best Practices
  • Database
    • GORM
      • Create Domain Model
      • Transactions
      • LazyInitializationException
      • Open Session In View I.
      • Open Session In View II.
      • Table Container
    • Groovy SQL
      • Create Sql Bean
      • Execute SQLs
    • MyBatis
      • MyBatis Configuration
      • Reading Data with MyBatis
    • JdbcTemplate
      • Create JdbcTemplate Beans
      • Using JdbcTemplate
    • Clean Up When Using Alternatives
  • UI
Powered by GitBook
On this page
  • Step 1
  • Step 2
  • Step 3
  • Step 4
  • Step 5

Was this helpful?

  1. Project setup
  2. Environment setup

Windows

PreviousUnix based systemsNextCreating Project

Last updated 5 years ago

Was this helpful?

Step 1

Open System Properties dialog window and switch to Advanced tab. Then click on Environment Variables... button, which opens Environment Variables dialog.

Step 2

In this step, you are going to set system environment variables for your windows machine. Click on New... button in System variables section to add a new system variable.

Step 3

You are going to set Java home in this step, because Grails is Java based technology and you need Java on system in order to run any Grails command. Insert JAVA_HOME into Variable name text field. Then insert path to your version of Java 8 into Variable value text field.

Step 4

In this step we are going to set Grails home because you will need to run Grails commands from command line.

Step 5

In this step you will make it possible to run Grails from your command line. Select Path variable from the list of system variables and click on Edit... button. Go at the end of text in Variable value text field and append the path to Grails bin folder, in our case C:\grails-3.1.7\bin

Now you are done and you can proceed to another chapter about project creation.

Insert GRAILS_HOME into Variable name text field and path to Grails installation into Variable value text field. You can get Grails binaries from . Just unzip the downloaded archive and provide path to the folder. In our case, it was grails-3.1.7 on C: drive.

In case you run into troubles, follow this tutorial: .

https://grails.org/download.html
Setup Grails 3 Windows Development Environment