Installing GWT

Now we will set a wonderful framework GWT.This article does not claim to originality, similar articles you can find a lot, but still I decided to write a step-by-step man installation, since my first topic.You can write your application in your favorite editor, but I decided that if there is an opportunity to tie gwt to such a wonderful development environment like Eclipse, then write and use will.

So what we need to get started:
1. Download GWT. 2. Download Eclipse. I rocked version of Eclipse Classic. 3. To force to work the whole thing.In General, installation of GWT, and Ecliplse does not cause problems — just razorwire in neobhodimoe place and all.Now screw the GWT to Eclipse.First things first, you need to set a variable GWT_HOME. It is simple — the Main menu = > Windows = > Preferences...Then, under Java = > Build Path = > Classpath Variables create a new variable (New). Call it relevant GWT_HOME and set the folder where you unpacked GWT.That's all. You can now create a project. This is done as easy as anything else. In General, the creation of the project, the comrades of Google divided into 2 parts: 1. Create a project template. 2. Creating the application template.The first part is to just go to the folder Kula unpacked GWT and write in the console:projectCreator -eclipse MyFirstGWTApplication -out d:\Projects\MyFirstGWTApplicationthen you will see a notification about the generated files.Further on the second point — never left you write:applicationCreator -eclipse MyFirstGWTApplication -out d:\Projects\MyFirstGWTApplication EN.habrahabr.client.MyFirstGWTApplicationAgain, look what was created. If everything is OK, then import the project in Eclipse:File => Import => General => Existing Project into WorkspaceFurther all is simple, if you are going to write one, then I have nothing else to do. If provides team development, it is necessary for the project to determine the placement of the libraries through GWT_HOME, which we created in the beginning.To do this go:Project => Properties => Java Build Class => Libraries. We find there gwt-user.jar removed it. Then Click Add Variable => Select GWT_HOME => Click Extend... => Select gwt-user.isochrones the whole thing. That's not all. Similarly, it is necessary to specify the Classpath for the project. Run => Open Debug Dialog => Java Application => MyFirstGWTApplication => Classpath => gwt-dev-wondows.jar => Remove => Advanced => Add Classpath Variables => GWT_HOME => Extend => gwt-dev-wondows.jar => Ok.Phew, now everything seems to be. Press Ctrl+F11 and see what happens.The application is simple. Possible problems with encoding when using Cyrillic characters. Solved by placing the appropriate code pages for the editor and Eclipse for the project.
Article based on information from habrahabr.ru

Комментарии

Популярные сообщения из этого блога

ODBC Firebird, Postgresql, executing queries in Powershell

garage48 for the first time in Kiev!

The Ministry of communications wants to ban phones without GLONASS