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.