Install jdk1.5.0 in Linux and run eclipse 3

Source: Internet
Author: User
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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.