Section 2 install eclipse
Returned directory
Eclipse.org provides download of the entire eclipse system, including SWT and jface. Download the main site is http://www.eclipse.org/downloads. Some image sites linked from the main site also provide eclipse download. You can download the eclipse executable file or its source code. The source code has two forms: zip file and CVS; the executable file is the zip package of a specific platform.
Eclipse supports most mainstream platforms. Currently, the following platforms are supported for the downloaded executable files:
- Windows 98/ME/2000/XP
- Linux (both motif and GTK 2)
- Solaris 8
- QNX
- AIX
- HP-UX
- Mac OS X
You can also download the Windows CE version of SWT, but there is no eclipse.
Most operating systems have only one executable file. However, on Linux, the executable file is related to the Windows system: motif and GTK, but no one stops you from downloading and installing them. Select a link suitable for your system, and then download the installation file to a temporary directory.
Note:Eclipse does not include JRE (Java Runtime Environment ). You must install JRE (or JDK) version 1.4.1 or later before running eclipse ).
Eclipse does not provide installation programs. To install eclipse, you only need to extract the downloaded file to a directory (for example, c: \ in windows,/usr/local in Unix or Linux ). Under the directory you selected, an eclipse directory will be created, and all eclipse files will be copied to this directory. Run the appropriate program (such as ecl0000.exe or eclipse) in the system when you start eclipse ). You can also create a desktop icon to start eclipse. Figure 2-1 shows the properties of the desktop icon in windows.
Figure 2-1 attributes of the eclipse shortcut
When eclise is started for the first time, the installation process is completed and a workspace is created ).
By adding parameters to the eclipse startup command through the command line or shortcut, you can change the default behavior during eclipse runtime. The default setting is good, but if you are adventurous, you can try the command line parameters listed in Table 2-1.
Table 2-1 eclipse Parameters
Parameters |
Description |
-Data <directory> |
Indicates that <directory> is used as the working directory. Eclipse loads existing projects from this directory and creates new projects in this directory. The default working directory is the workspace directory under the eclipse installation directory-unless you do not have the write permission, it is in your home directory. |
-Debug |
Start eclipse in debug mode |
-Nosplash |
Disable (not displayed) splash screen |
-VM <JavaVM> |
Indicates that <JavaVM> is used as the JVM for eclipse. You must have a JVM in the running path or use the-VM command to specify the JVM location. |
-Vmargs <arguments> |
Specifies the parameter to be passed to JVM. |
Returned directory