From Documentation

(Difference between revisions)
Jump to: navigation, search
m
(Install ZK Studio)
Line 16: Line 16:
==Install ZK Studio==
==Install ZK Studio==
 +
===Prerequisites===
 +
You can follow [[Small_Talks/2008/November/ZK_Studio_Installation_Guide |ZK Studio Installation Guide]] to install ZK Studio. There are prerequisites you have to set up before installing ZK studio:
-
Follow [[Small_Talks/2008/November/ZK_Studio_Installation_Guide |ZK Studio Installation Guide]] to install ZK Studio.
+
====Java SE Development Kit (JDK)====
 +
Java SE Development Kit version 5 or 6 is required in order to run Eclipse, you can download either of them from the links below:<br/>
 +
JDK 6: [http://java.sun.com/javase/downloads/index.jsp http://java.sun.com/javase/downloads/index.jsp]
 +
JDK 5: [http://java.sun.com/javase/downloads/index_jdk5.jsp http://java.sun.com/javase/downloads/index_jdk5.jsp]
 +
 
 +
For detailed information on JDK installation, please see [http://java.sun.com/javase/6/webnotes/install/index.html http://java.sun.com/javase/6/webnotes/install/index.html], or [http://java.sun.com/j2se/1.5.0/install.html http://java.sun.com/j2se/1.5.0/install.html]
 +
 
 +
====Eclipse IDE for Java EE Developers====
 +
ZK Studio is an Eclipse Plug-in so you must install Eclipse in advance. We recommend the '''Eclipse IDE for Java EE Developers''' package. [http://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/galileor '''v3.6(Galileo)'''] is recommended. Please see [http://www.eclipse.org/webtools/community/tutorials/BuildJ2EEWebApp/BuildJ2EEWebApp.html '''WTP Tutorials – Building and Running a Web Application'''] for details.
 +
 
 +
====Application Servers====
 +
Before developing web applications in Java using the ZK Ajax Framework, you need to install an application server. Apache Tomcat is one of the most popular Web containers. Tomcat versions 6 and 7 are compatible with ZK Studio and can be downloaded from link [http://tomcat.apache.org/ http://tomcat.apache.org/].
== Defining a Server Runtime==
== Defining a Server Runtime==

Revision as of 10:03, 20 June 2011






Contents


ZK Studio is an Eclipse plugin to simplify the development of ZK applications with Eclipse.

If you prefer to install it manually or use with other IDE, please refer to Create and Run Your First ZK Application Manually.

Prepare Eclipse

Install Eclipse

  1. Visit Eclipse download page and download Eclipse IDE for Java EE Developers
  2. Uncompress it to a proper directory
  3. Then, eclipse is ready to start.
    • For example, you could double-click eclipse.exe to start Eclipse under Windows.

Install ZK Studio

Prerequisites

You can follow ZK Studio Installation Guide to install ZK Studio. There are prerequisites you have to set up before installing ZK studio:

Java SE Development Kit (JDK)

Java SE Development Kit version 5 or 6 is required in order to run Eclipse, you can download either of them from the links below:
JDK 6: http://java.sun.com/javase/downloads/index.jsp JDK 5: http://java.sun.com/javase/downloads/index_jdk5.jsp

For detailed information on JDK installation, please see http://java.sun.com/javase/6/webnotes/install/index.html, or http://java.sun.com/j2se/1.5.0/install.html

Eclipse IDE for Java EE Developers

ZK Studio is an Eclipse Plug-in so you must install Eclipse in advance. We recommend the Eclipse IDE for Java EE Developers package. v3.6(Galileo) is recommended. Please see WTP Tutorials – Building and Running a Web Application for details.

Application Servers

Before developing web applications in Java using the ZK Ajax Framework, you need to install an application server. Apache Tomcat is one of the most popular Web containers. Tomcat versions 6 and 7 are compatible with ZK Studio and can be downloaded from link http://tomcat.apache.org/.

Defining a Server Runtime

Before deploying and testing your application, you have to install a Web server (such as Tomcat) and specify the server in eclipse. For the information of installing a server, please refer to ZK Installation Guide/Setting up Servers/Tomcat.

To specify the server in eclipse, please do as follows.

  1. From menu goto Windows > Preferences...
  2. Select Server > Runtime Environments, then click Add
  3. Select Apache > Apache Tomcat v6.0 and click Next
  4. Browse to and select the root directory of the Web server installed in your computer
    • For example, the root directory of Apache Tomcat might be C:\Program Files\Apache Software Foundation\Tomcat 6.0
    • For how to install Tomcat, please refer to this section
  5. Click Finish

Create a "Hello World" application from scratch with ZK Sutdio

Create a new "ZK Project"

With the release of ZK Studio you no longer have to create a new Dynamic Web Project and configure the settings for ZK! You can create a new ZK Project, choose your ZK Package and sit back while ZK Studio does the rest for you.


The following swf demonstrates how to create a new ZK project using Eclipse 3.4 and ZK Studio:


For detailed steps, please refer to Create a New ZK Project

Create a new ZUL file

1. Right click on the WebContent folder in the Project Explorer view or the Package Explorer view and select New > ZUL.

NewZULFileRightClick.png

2. Type test.zul in the File name textbox and click Finish.

NewZULFileWizard1.png

3. The newly created ZUL File will be opened in the ZUL Editor.

TestZUL.png

Run the application

1. Right click on the MyApp project in explorer and in the Menu dialog select Run As > Run on Server

Runonserver.png

2. Select Apache > Tomcat v6.0 Server in server type dialog and then click Finish

RunOnTomcat.png

3. See the result in your browser.

TestZULinBrowser.png

Version History

Version Date Content
     




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