1 first prepare JDK, http: // 192.18.97.46/ECOM/ecomticketservlet/Servlets/-2147483648/614220903/1/531770/531638/614220903/2ts +/westcoastfsend/jdk-1.5.0-oth-JPR/jdk-1.5.0-oth-JPR: 3/jdk-1_5_0-linux-i586.bin
Put the downloaded file under/usr. This does not matter.
2 installation: use CD/usr to the USR directory, run the installation with A./jdk-1_5_0-linux-i586.bin.
(I installed it in another directory and copied it directly to/usr ).
At this time, java_home is/usr/jdk1.5.0.
3. Configure environment variables.
1) Open a shell and use Vim to open/etc/profile. The command is as follows:
VI/etc/profile
After it is turned on, press the <Insert> key on the keyboard (Vim insert mode), move the cursor to the end of the content in profile, and add the following content to a new line:
Export java_home =/usr/jdk1.5.0
Export Path =/usr/jdk1.5.0/bin: $ path
Export classpath =/usr/jdk1.5.0/lib
Press the <ESC> key. In this case, VIM is the command mode. Type: WQ to save and exit vim.
After logging out of your system, open a shell and type Java to display the Java command prompt. The installation is successful!
(You can open profile editing directly under/etc without using Vim ).
The basic usage of VIM is described here. If the profile configuration is incorrect, the system cannot run normally.
In the secure terminal mode, you can enter Vim to re-edit the profile.
4. Run eclipse 3.0. Select eclipse based on your system.
After I download and decompress GTK in fedora 3, double-click eclipse to run it.