First, a few prerequisites. You need an installed Java Development Kit (JDK) of version 1.4 or later. As of this writing, using GWT distribution gwt-mac-1.2.22, you cannot use the Java 5 features such as generics or autoboxing with your client-side code, but you can certainly use the Java 5 JDK compiler as you write these classes. NOTE
The GWT developers released GWT Release Candidate (RC) 1.3 at the time we published this shortcut. This release is associated with the GWT open-source announcement, however, and did not provide any new functionality. The demo application was compiled and tested with gwt-mac-1.3.1 RC and the official gwt-mac-1.2.22 release. You have to download and unpack the GWT framework. The download address is http://code.google.com/webtoolkit. You can download the framework for Windows, Linux, or Mac OS X. The unpacked archive includes:
NOTE
You do not need to include the gwt-servlet.jar file in your Java web application's classpath unless you have server-side classes that use the GWT API, such as the Remote Procedure Call (RPC) related classes and interfaces. This is because the GWT user interface-related Java API is only used in development, before the GWT tools or compilers generate the JavaScript. You then deploy just the generated JavaScript to your web application. The JavaScript is eventually executed inside the browser and no longer has any relation to the GWT Java API (and associated JAR file). By then, it's just JavaScript! Now we're almost ready to start coding. |