GWT applications may be run with commonly
used browsers such as IE and Netscape and Safari.
4.2 Installing GWT
First, we need to download GWT 1.41. Extract the zip file to a directory.
Install a recent version of JDK if not already installed. We shall be using
JDK 5.0. GWT does not require any installer application. All the required
files are available in the directory in which the zip file is extracted.
GWT provides the command-line tool applicationCreator to
generate a GWT application. GWT also provides a projectCreator
tool to generate an Eclipse project for the GWT application, but we shall
only discuss the command-line GWT application.
A GWT application may be run in two modes: hosted mode and web
mode. In hosted mode a GWT application is run as Java bytecode in the
JVM. In web mode the GWT application is run as JavaScript and HTML
created with Java-to-JavaScript compiler.
GWT has four main components.
1. GWT Java-to-JavaScript compiler. The Java-to-JavaScript compiler
compiles a Java class into JavaScript and HTML. Java-to-JavaScript
compiler is used to run a GWT application in web mode.
1 Download GWT- http://code.google.com/webtoolkit/download.html
62 4 Ajax with Java-GWT
2. GWT Hosted Web Browser. The Hosted Web Browser is used to run
a GWT application in hosted mode.
3. JRE Emulation Library. The JRE emulation library contains
JavaScript implementations of the most commonly used Java
standard class libraries.
Pages:
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74