Install JDK 6.4 + Eclipse in CentOS 1.7

Source: Internet
Author: User

Install JDK 6.4 + Eclipse in CentOS 1.7

1. Install JDK 1.7

1. Uninstall OpenJDK

Rpm-qa | grep java

Rpm-e -- nodeps java-1.6.0-openjdk-1.6.0.0-1.50.1.11.5.el6_3.x86_64
Rpm-e -- nodeps java-1.7.0-openjdk-1.7.0.9-2.3.4.1.el6_3.x86_64
Rpm-e -- nodeps tzdata-java-2012j-1.el6.noarch

2. Download: http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

Select jdk-7u67-linux-x64.tar.gz for download, store it in the/root/Downloads/directory, and move it to the/usr/directory. The command is as follows:

Music jdk-7u67-linux-x64.tar.gz/usr/local/

3. After the movement is complete, decompress the package. The command is as follows:

Tar zxvf jdk-7u67-linux-x64.tar.gz

4. decompress the package to obtain the jdk1.7.0 _ 67 folder and rename it with the following command:

Mv jdk1.7.0 _ 67 Java

5. Delete the installation package:

Rm-f jdk-7u67-linux-x64.tar.gz

6. Open/etc/profile and add the environment variable:

Vi/etc/profile

Add at the end of the profile file:

JAVA_HOME =/usr/local/Java
PATH = $ JAVA_HOME/bin: $ PATH
CLASSPATH =.: $ JAVA_HOME/lib/dt. jar: $ JAVA_HOME/lib/tools. jar
Export JAVA_HOME
Export PATH
Export CLASSPATH

7. restart the system:

Reboot

8. Test whether JDK 1.7 is successfully installed:

Java-version

Ii. Install Eclipse

1. Download: http://www.eclipse.org/downloads/download.php? File =/eclipse/downloads/drops4/R-4.2.1-201209141800/eclipse-SDK-4.2.1-linux-gtk-x86_64.tar.gz

Store it in the/home/ghoulich/Downloads/directory and move it to the/opt/directory. The command is as follows:

Music eclipse-SDK-4.2.1-linux-gtk-x86_64.tar.gz/opt

2. After the movement is complete, decompress the package. The command is as follows:

Tar zxvf eclipse-SDK-4.2.1-linux-gtk-x86_64.tar.gz

3. Delete the installation package:

Rm eclipse-SDK-4.2.1-linux-gtk-x86_64.tar.gz

4. Create a starter on the desktop:

Right-click the desktop, select Create Launcher from the menu, enter Eclipse in the Name column of the pop-up window, and specify/opt/eclipse in the Command column.

5. Open Eclipse and create a new Hello project to test whether the installation is successful.

Install JDK and configure environment variables in Ubuntu

Install JDK 7 In Ubuntu (with Clojure download)

Install JDK 12.04 in Ubuntu

CentOS6.3 install JDK and environment Configuration

Ubuntu14.04 64-bit JDK1.7 Installation

Hadoop 1.2.1 compile Eclipse plug-in

Install JDK and Eclipse for C/C ++ in Ubuntu 13.10 (solving global menu problems)

How to install the latest Eclipse version in Ubuntu 14.04

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.