Although a knowledge of HTML, CSS, and Java is assumed, it is not required to run these tutorials.
Before you begin these tutorials, we assume that you’ve done the following:
- Installed the Java SDK.
- If you don’t have a recent version of the Java SDK installed, download and install Sun Java Standard Edition SDK.
- Installed Eclipse or your favorite Java IDE.
- In these tutorials, we use Eclipse because it is open source. However, GWT does not tie you to Eclipse. You can use IntelliJ, NetBeans or any Java IDE you prefer. If you use a Java IDE other than Eclipse, the screenshots and some of the specific instructions in the tutorial will be different, but the basic GWT concepts will be the same.
- If your Java IDE does not include Apache Ant support, you can download and unzip Ant to easily compile and run GWT applications.
- Installed the Google Plugin for Eclipse.
- The Google Plugin for Eclipse adds functionality to Eclipse for creating and developing GWT applications.
- Downloaded Google Web Toolkit.
- Google Web Toolkit can be downloaded with the Google Plugin for Eclipse. Alternatively, download the most recent distribution of Google Web Toolkit for your operating system.
- Unzipped the GWT distribution in directory you want to run it in.
- GWT does not have an installation program. All the files you need to run and use GWT are located in the extracted directory.
You may also optionally do the following:
Install the Google App Engine SDK.
- Google App Engine allows you to run Java web applications, including GWT applications, on Google’s infrastructure. The App Engine SDK can be downloaded with the Google Plugin for Eclipse. Alternatively, download the App Engine SDK for Java separately.
Create and run your first web application - A few, simple steps to familiarize you with the command line commands.
Build a Sample GWT Application
- Communicating with the server via GWT RPC
- Add a call to a server using GWT RPC. You’ll learn how to make asynchronous calls, serialize Java objects, and handle exceptions.
- Retrieving JSON data via HTTP
- Make HTTP requests to retrieve JSON data from a server. The same technique can be used to retrieve XML data.
- Making cross-site requests
- Make a call to a remote server, working around SOP (Same Origin Policy) constraints.
- Internationalizing a GWT application
- Translate the user interface of a GWT application into another language using Static String Internationalization.
- Unit testing with JUnit
- Add unit tests to a GWT application using JUnit.