Create and Run Your First ZK Application with IntelliJ and ZKIdea

From Documentation


DocumentationZK Installation GuideQuick StartCreate and Run Your First ZK Application with IntelliJ and ZKIdea
Create and Run Your First ZK Application with IntelliJ and ZKIdea




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

Install ZK IntelliJ Plugin

Install IntelliJ

  1. Download the latest IntelliJ IDE from here

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.
    ZKInstallationGuide IntelliJ InstallZKPlugin.png

  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.
    ZKInstallationGuide IntelliJ SelectNewZKProject.png

  3. Fill in the information about your project and press "Next".
    ZKInstallationGuide IntelliJ CreateNewZKProject1.png

  4. Check all the information about your project and press "Next".
    ZKInstallationGuide IntelliJ CreateNewZKProject2.png

  5. Fill in the project location and press "Finish".
    ZKInstallationGuide IntelliJ CreateNewZKProject3.png

Run the ZK Project

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

  2. Press the plus icon "+" to add a maven runtime
    ZKInstallationGuide IntelliJ RunZKProject1.png

  3. Fill in the project information and type "jetty:run" into the "Command Line" field, and then press "Apply" and "OK"
    ZKInstallationGuide IntelliJ RunZKProject2.png

  4. Press the green run button to run a jetty server with the project
    ZKInstallationGuide IntelliJ RunZKProject3.png

  5. Visit the link "http://localhost:8080/test/index.zul" on your browser
    ZKInstallationGuide IntelliJ RunZKProject4.png



Last Update : 2023/01/13

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.