About gwt1.5.2 Basics

Source: Internet
Author: User

GWT applications run in two ways:

Hosted Model

In the hosted model mode, Java programs are not compiled into JavaScript, and GWT just creates a similar

The browser environment directly runs the program developed using GWT. This mode is the most productive (this mode can debug all Java code ),

Therefore, the development environment usually uses the hosted model, but this mode is not used for real program execution.

Web Model

It is to compile the Java program compiled using GWT into JavaScript, run on the Web container, and use the browser

Access mode. This method is used only during testing or running. Each modification to the Java class must be re-compiled.

And then redeploy the application. Therefore, the productivity is relatively low.

Use GWT for development

After downloading the GWT package from Google, decompress the package to a directory. Five CMD files are found, including

Applicationcreator creates a GWT application that can run in hosted mode. The command is as follows:

 

Applicationcreator-Eclipse helloworld-out helloworld com. tibco. Client. helloworld

This command will create a project,

Run the following command:

Projectcreator-Eclipse helloworld-out helloworld

This command is created in the. classpath and. project files of eclipse. Now, an Eclipse project is completely created. You can import exsiting project into workspace in elicpse.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.