1. What is GWT?
Google Web Toolkit (GWT, read as/?ɡw?t/), is a front-end use of JavaScript, backend using the Java AJAX framework, with Apache License version 2.0 open source code. GWT compiles Java code into JavaScript through the compiler, allowing developers to quickly build and maintain complex but high-performance JavaScript front-end applications using the Java programming language to ease the burden on developers.
See also: Http://zh.wikipedia.org/wiki/GWT
2.GWT SDK Installation Configuration
GWT website: http://www.gwtproject.org
Download GWT sdk:http://www.gwtproject.org/download.html
Unzip, add the following in the environment variable (depending on your actual path name):
gwt_home:c\gwt-2.7.0
Path:%gwt_home%
Configuring the GWT plugin in 3.eclipse
Plugin Download Instructions: official website description
But the actual online installation often has problems, so we try to choose the offline install plugin.
Eclipse GWT Plugin Offline
After downloading this offline package, it is found that the Google App Engine SDK is not included, so we need to download this SDK
After download, unzip, put into the \eclipse\plugins file.
Note that the ASM jar package that is included by default is 4.0, and we need to download the latest version of the ASM jar replacement.
Otherwise, the following items will be error: JAVA.LANG.NOSUCHMETHODERROR:ORG.OBJECTWEB.ASM.METHODVISITOR.VISITMETHODINSN (iljava/lang/string; ljava/lang/string; ljava/lang/string; Z) V
Build projects in 4.eclipse
New project, New->peoject->google->web application project
Fill in the project name and package name and you will need to manually add the GWT SDK and the app Engine SDK for the first time.
After the project is built, Run as->web application
The browser can see the following
Note: 1. You need to add GWT developer plugin in your browser, but new versions of Chrome and Firefox do not support this plugin. So, you can choose Firefox 26.0.
2.GWT Designer requires the GWT SDK version:
GWT Designer is unmaintained. It doesn ' t work with GWT 2.6.0 or 2.7, and likely won ' t work with newer versions. It does work with 2.6.1 though, but I don ' t recommend using any other version than the latest, particularly with "classic" DevMode being deprecated too:2.7 is the first version where Superdevmode was really usable, and it ' ll continue to improve In the coming versions.
Google Web Toolkit (GWT) built under Windows