Creating charts on Web pages with Java and GChart

The Apache-licensed GChart utility lets you quickly generate nice-looking charts on your Web site. GChart is implemented with the Google Web Toolkit (GWT), which we introduced recently. To install GChart, just extract the distribution zip file. You can work with GChart in your own GWT applications by using it in Eclipse.

You first have to tell Eclipse where to find the extracted gchart.jar file and modify your GWT module file to include GChart. These last two setups are described in detail in GChart's installation instructions. Note that you will most likely need to install x86 packages on an x86_64 Linux distribution because GWT does not currently have a 64-bit download. To get GWT working from Eclipse on a Fedora 8 x86_64 installation I had to download and install the 32-bit version of Sun's JDK. Once the JDK is installed, right-click your project in Eclipse, open the Properties window, select the Java Build Path entry in the list on the left side of the dialog, and then the Libraries tab on the right side. Change your JRE system library from there to the 32-bit Sun JDK.