Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
book-of-vaadin.pdf
Скачиваний:
88
Добавлен:
24.03.2015
Размер:
13.43 Mб
Скачать

Getting Started with Vaadin

3.Eclipse should normally be installed as a regular user, as this makes installation of plugins easier. Eclipse also stores some user settings in the installation directory. To install the package, enter:

$ tar zxf (path-to-installation-package)/eclipse-jee-ganymede-SR2-linux-gtk.tar.gz

This will extract the package to a subdirectory with the name eclipse.

4.You may wish to add the Eclipse installation directory and the bin subdirectory in the installation directory of Java SDK to your system or user PATH.

An alternative to the above procedure would be to use an Eclipse version available through the package management system of your operating system. It is, however, not recommended, because you will need write access to the Eclipse installation directory to install Eclipse plugins, and you may face incompatibility issues with Eclipse plugins installed by the package management of the operating system.

2.2.3. Installing Apache Tomcat

Apache Tomcat is a lightweight Java web server suitable for both development and production. There are many ways to install it, but here we simply decompress the installation package.

Apache Tomcat should be installed with user permissions. During development, you will be running Eclipse or some other IDE with user permissions, but deploying web applications to a Tomcat server that is installed system-wide requires administrator or root permissions.

1.Download the installation package:

Apache Tomcat 7.0 (Core Binary Distribution) from http://tomcat.apache.org/

2.Decompress Apache Tomcat package to a suitable target directory, such as C:\dev (Windows) or /opt (Linux or Mac OS X). The Apache Tomcat home directory will be

C:\dev\apache-tomcat-7.0.x or /opt/apache-tomcat-7.0.x, respectively.

2.2.4.Firefox and Firebug

Vaadin supports many web browsers and you can use any of them for development. If you plan to create a custom theme, customized layouts, or create new components, we recommend that you use Firefox together with Firebug.

If you do not have Firefox installed already, go to www.getfirefox.com [http://www.getfirefox.com/] and download and run the installer. In Linux, you can install it also with a package manager.

Using Firebug with Vaadin

After installing Firefox, use it to open http://www.getfirebug.com/ [http://www.getfirebug.com/]. Follow the instructions on the site to install the latest stable version of Firebug available for the browser. You may need to allow Firefox to install the plugin by clicking the yellow warning bar at the top of the browser window.

After Firebug is installed, it can be enabled at any time from the Firefox toolbar. Figure 2.2, “Firebug Debugger for Firefox” shows Firebug in action.

Installing Apache Tomcat

31

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]