Configure jdk1.6 + eclipse in the UbuntuLinux System

Source: Internet
Author: User
Article Title: Configure jdk1.6 + eclipse in the UbuntuLinux system. Linux is a technology channel of the IT lab in China. Including desktop applications, Linux system management, kernel research, embedded systems, open source, and other basic categories of jre Installation
 
Open terminal Input
 
Sudo apt-get install sun-java6-jre
 
During the installation process, you need to answer whether you agree to use the agreement. There is no other choice!
 
Use java-version to view the jre version:
 
Java version "1.6.0 _ 03"
 
Java (TM) SE Runtime Environment (build 1.6.0 _ 03-b05)
 
Java HotSpot (TM) Client VM (build 1.6.0 _ 03-b05, mixed mode, sharing)
 
It indicates that you have installed jre1.6 successfully.
 
If the version is still the old version, use the following command to set the installed jre version as the default java interpreter.
 
Sudo update-alternatives -- config java
 
The following content will appear after execution:
 
There are two options available, both of which provide "java" <
 
Select option
 
1/usr/bin/gij-4.2
 
* + 2/usr/lib/jvm/java-6-sun/jre/bin/java
 
To maintain the default value *], press the Enter key or enter the selected number:
 
Press enter to keep the default *], or type selection number:
 
Select the number of the jre version you want to use. Enter 2 and set jre1.6 as the default interpreter.
 
Install jdk
 
Sudo apt-get install sun-java6-jdk
 
The jre installation must also accept the Protocol during installation.
 
Environment variables are configured after installation.
 
Sudo gedit/etc/environment
 
Add the following two lines:
 
CLASSPATH =.:/usr/lib/jvm/java-6-sun/lib
 
JAVA_HOME =/usr/lib/jvm/java-6-sun
 
Sudo gedit/etc/jvm
 
Convert
 
/Usr/lib/jvm/java-6-sun
 
Enter this line at the top of the configuration block.
 
Install the browser's JAVA Plugin
 
Sudo apt-get install sun-java6-plugin
 
You don't need to install eclipse. Simply decompress it and you will be OK!
 
If the network speed is fast, it will take 5 minutes to install it!
 

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.