ZKIdea is an IntelliJ plugin for ZK application development contributed by Mr. Jumper Chen.

Install ZK IntelliJ Plugin

Install IntelliJ

or visit JETBRAINS Marketplace

Install ZK plugin

  1. Start IntelliJ

  2. On IntelliJ’s main menu bar, select File > Settings > Plugins.
    Or from the welcome screen: select Configure > Plugins

  3. Type ZK into the search bar, and then install it.
    ZKInstallation Guide Intelli J Install ZKPlugin

  4. After installation, restart IntelliJ when prompted to activate the plugin.

Create a New ZK Project

  1. On IntelliJ main menu bar, select File > “New Project” > Maven

  2. On the New Project wizard, select a “Project SDK”, check “Create from archetype”, scroll to the end of the list, select a ZK archetype, and press “Next” to create a project.
    ZKInstallation Guide Intelli J Select New ZKProject

  3. Fill in the information about your project and press “Next”.
    ZKInstallation Guide Intelli J Create New ZKProject1

  4. Check all the information about your project and press “Next”.
    ZKInstallation Guide Intelli J Create New ZKProject2

  5. Fill in the project location and press “Finish”.
    ZKInstallation Guide Intelli J Create New ZKProject3

Run the ZK Project

  1. On IntelliJ main menu bar, select Run > “Edit Configurations”

  2. Press the plus icon “+” to add a maven runtime
    ZKInstallation Guide Intelli J Run ZKProject1

  3. Fill in the project information and type “jetty:run” into the “Command Line” field, and then press “Apply” and “OK”
    ZKInstallation Guide Intelli J Run ZKProject2

  4. Press the green run button to run a jetty server with the project
    ZKInstallation Guide Intelli J Run ZKProject3

  5. Visit the link “http://localhost:8080/test/index.zul” on your browser
    ZKInstallation Guide Intelli J Run ZKProject4