- GWT Google Charts - Discussion
- GWT Google Charts - Resources
- GWT Google Charts - Quick Guide
- GWT Google Charts - TreeMap Chart
- GWT Google Charts - Table Chart
- GWT Google Charts - Stepped Area
- GWT Google Charts - Scatter Chart
- GWT Google Charts - Sankey Charts
- GWT Google Charts - Pie Charts
- GWT Google Charts - Organization
- GWT Google Charts - Maps
- GWT Google Charts - Line Charts
- GWT Google Charts - Histogram
- GWT Google Charts - Combination
- GWT Google Charts - Column Charts
- GWT Google Charts - Candlestick
- GWT Google Charts - Bubble Charts
- GWT Google Charts - Bar Charts
- GWT Google Charts - Area Charts
- Configuration Syntax
- Environment Setup
- GWT Google Charts - Overview
- GWT Google Charts - Home
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
GWT Google Charts - Environment Setup
This tutorial will guide you on how to prepare a development environment to start your work with Google Charts and GWT Framework. This tutorial will also teach you how to setup JDK, Tomcat and Ecppse on your machine before you setup GWT Framework −
System Requirement
GWT requires JDK 1.6 or higher so the very first requirement is to have JDK installed in your machine.
JDK | 1.6 or above. |
---|---|
Memory | no minimum requirement. |
Disk Space | no minimum requirement. |
Operating System | no minimum requirement. |
Follow the given steps to setup your environment to start with GWT apppcation development.
Step 1 - Verify Java Installation on your Machine
Now open console and execute the following java command.
OS | Task | Command |
---|---|---|
Windows | Open Command Console | c:> java -version |
Linux | Open Command Terminal | $ java -version |
Mac | Open Terminal | machine:~ joseph$ java -version |
Let s verify the output for all the operating systems
Sr.No. | OS & Generated Output |
---|---|
1 |
Windows java version "1.6.0_21" Java(TM) SE Runtime Environment (build 1.6.0_21-b07) Java HotSpot(TM) Cpent VM (build 17.0-b17, mixed mode, sharing) |
2 |
Linux java version "1.6.0_21" Java(TM) SE Runtime Environment (build 1.6.0_21-b07) ava HotSpot(TM) Cpent VM (build 17.0-b17, mixed mode, sharing) |
3 |
Mac java version "1.6.0_21" Java(TM) SE Runtime Environment (build 1.6.0_21-b07) Java HotSpot(TM)64-Bit Server VM (build 17.0-b17, mixed mode, sharing) |
Step 2 - Setup Java Development Kit (JDK)
If you do not have Java installed then you can install the Java Software Development Kit (SDK) from Oracle s Java site:
. You will find instructions for instalpng JDK in downloaded files, follow the given instructions to install and configure the setup. Finally set PATH and JAVA_HOME environment variables to refer to the directory that contains java and javac, typically java_install_dir/bin and java_install_dir respectively.Set the JAVA_HOME environment variable to point to the base directory location where Java is installed on your machine. For example
Sr.No. | OS & Output |
---|---|
1 |
Windows Set the environment variable JAVA_HOME to C:Program FilesJavajdk1.6.0_21 |
2 |
Linux export JAVA_HOME = /usr/local/java-current |
3 |
Mac export JAVA_HOME = /Library/Java/Home |
Append Java compiler location to System Path.
Sr.No. | OS & Output |
---|---|
1 |
Windows Append the string ;%JAVA_HOME%in to the end of the system variable, Path. |
2 |
Linux export PATH=$PATH:$JAVA_HOME/bin/ |
3 |
Mac not required |
Alternatively, if you use an Integrated Development Environment (IDE) pke Borland JBuilder, Ecppse, IntelpJ IDEA, or Sun ONE Studio, compile and run a simple program to confirm that the IDE knows where you installed Java, otherwise do proper setup as given document of the IDE.
Step 3 - Setup Ecppse IDE
All the examples in this tutorial have been written using Ecppse IDE. So I would suggest you should have latest version of Ecppse installed on your machine based on your operating system.
To install Ecppse IDE, download the latest Ecppse binaries from
. Once you downloaded the installation, unpack the binary distribution into a convenient location. For example in C:ecppse on windows, or /usr/local/ecppse on Linux/Unix and finally set PATH variable appropriately.Ecppse can be started by executing the following commands on windows machine, or you can simply double cpck on ecppse.exe
%C:ecppseecppse.exe
Ecppse can be started by executing the following commands on Unix (Solaris, Linux, etc.) machine −
$/usr/local/ecppse/ecppse
After a successful startup, if everything is fine then it should display result
Step 4: Install GWT SDK & Plugin for Ecppse
Follow the instructions given at the pnk
to install GWT SDK & Plugin for Ecppse version installed on your machine.After a successful setup for the GWT plugin, if everything is fine then it should display following screen with Google icon marked with red rectangle.
Step 5: Install Google Charts
Download the latest Google Charts jar from its
page and add it to project s classpath.Add the following entry in <project-name>.gwt.xml file
<inherits name = "com.googlecode.gwt.charts.Charts"/>Advertisements