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

Getting Started with Vaadin

Regarding OS X, notice that JDK 1.6 or newer is included in OS X 10.6 and newer. Otherwise:

1.Download Sun Java 2 Standard Edition 6.0 from http://java.sun.com/javase/downloads/index.jsp [http://java.sun.com/javase/downloads/index.jsp]

2.Decompress it under a suitable base directory, such as /opt. For example, for Java SDK, enter (either as root or with sudo in Linux):

#cd /opt

#sh (path-to-installation-package)/jdk-6u1-linux-i586.bin

and follow the instructions in the installer.

3.Set up the JAVA_HOME environment variable to point to the Java installation directory. Also, include the $JAVA_HOME/bin in the PATH. How you do that varies by the UNIX variant. For example, in Linux and using the Bash shell, you would add lines such as the following to the .bashrc or .profile script in your home directory:

export JAVA_HOME=/opt/jdk1.6.0_29

export PATH=$PATH:$HOME/bin:$JAVA_HOME/bin

You could also make the setting system-wide in a file such as /etc/bash.bashrc, /etc/profile, or an equivalent file. If you install Apache Ant or Maven, you may also want to set up those in the path.

Settings done in a bashrc file require that you open a new shell window. Settings done in a profile file require that you log in into the system. You can, of course, also give the commands in the current shell.

2.2.2. Installing Eclipse IDE

Windows

1.Download the Eclipse IDE for Java EE Developers from http://www.eclipse.org/downloads/ [http://www.eclipse.org/downloads/]

2.Decompress the Eclipse IDE package to a suitable directory.You are free to select any directory and to use any ZIP decompressor, but in this example we decompress the ZIP file by just double-clicking it and selecting "Extract all files" task from Windows compressed folder task. In our installation example, we use C:\dev as the target directory.

Eclipse is now installed in C:\dev\eclipse and can be started from there (by double clicking eclipse.exe).

Linux / OS X / UNIX

We recommend that you install Eclipse manually in Linux and other UNIX variants as follows.

1.Download Eclipse IDE for Java EE Developers from http://www.eclipse.org/downloads/ [http://www.eclipse.org/downloads/]

2.Decompress the Eclipse package into a suitable base directory. It is important to make sure that there is no old Eclipse installation in the target directory. Installing a new version on top of an old one probably renders Eclipse unusable.

30

Installing Eclipse IDE

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