[HOWTO] install GWT on Gentoo

by

Hi buddies,

Today we’ll talking about Google Web Toolkit (a.k.a. GWT), a development toolkit for building and optimizing complex web applications.

It’s purpose is to drop cross-browser problems and optimize javascript code, making your AJAX-based application faster and high-performing.

Moreover it works with java code instead javascript, which make your works much safer then use a scripting language.

Emerge and Package

First of all, you have to emerge ant package (remember to set up your USE flag).

# Su
# Password: (your password)
# emerge -av ant

Install

Installation is really simple, just download it from:

http://code.google.com/intl/it-IT/webtoolkit/download.html

once downloaded, unzip it and you have done!

Simple right?

Use

Start a new project changing in your GWT directory and typing:

# su
# Password: (your password)
# chmod +x  webAppCreator
# ./webAppCreator -out MyWebApp com.mywork.mywebapp.MyWebApp

webAppCreator script accepts few parameters which are:

  • -out Root Directory
  • module name

Parameter -out generates all the directories tree in the root directory specified.
Instead, module name allow the earlier script to create a module with the chosen name.

Now, you should have created the directories tree of your web application. Something like following:

# Created directory MyWebApp/src
# Created directory MyWebApp/war
# Created directory MyWebApp/war/WEB-INF
# Created directory MyWebApp/war/WEB-INF/lib
# Created directory MyWebApp/src/com/google/gwt/sample/stockwatcher
# Created directory MyWebApp/test/com/google/gwt/...

To run your application type:

# cd MyWebApp
# ant devmode

This command start a local server used for development and debugging your application on localhost.

Compilation

When you are in devmode, you can try you application without compiling anything on your default browser (remember to download “Google Web Toolkit plugins”, your browser should does it automatically).

To compile and generate javascript code, type always in the MyWebApp/ directory the following line:

# ant build

you have created your first web application with GWT. Congratulations!

The next time we’ll see how to build UI with GWT.

Cya😀

Following Article: [HOWTO] build user interface with GWT

link: http://code.google.com/intl/it-IT/webtoolkit/

Tag: , , , , , , , , , , ,

Una Risposta to “[HOWTO] install GWT on Gentoo”

  1. [HOWTO] build user interface with GWT « Says:

    […] Previous Article: [HOWTO] install GWT on Gentoo […]

Lascia un commento

Inserisci i tuoi dati qui sotto o clicca su un'icona per effettuare l'accesso:

Logo WordPress.com

Stai commentando usando il tuo account WordPress.com. Chiudi sessione / Modifica )

Foto Twitter

Stai commentando usando il tuo account Twitter. Chiudi sessione / Modifica )

Foto di Facebook

Stai commentando usando il tuo account Facebook. Chiudi sessione / Modifica )

Google+ photo

Stai commentando usando il tuo account Google+. Chiudi sessione / Modifica )

Connessione a %s...


%d blogger cliccano Mi Piace per questo: