Installation of JDK, Eclipse, ADT, CDT, Pydev in Ubuntu 12.04 LTS (64bit) environment

Source: Internet
Author: User

I. In friendlyarm,tiny4412, the installation package can be supplemented by:
Install the JDK (Java), select the desired JDK, or install it all . a) OpenJDK-6.0
   
    1. $ sudo apt-get update
    2. $ sudo apt-get install openjdk-6-jdk

b) OpenJDK-7.0
    1. $ sudo apt-get update
    2. $ sudo apt-get install openjdk-7-jdk

c) SunJDK-6.0
    1. $ sudo add-apt-repository "Deb Http://archive.canonical.com/ubuntu precise partner"
    2. $ sudo apt-get update
    3. $ sudo apt-get install sun-java6-jdk

d) OracleJDK-8.0
    1. sudo add-apt-repository Ppa:webupd8team/java
    2. sudo apt-get update
    3. sudo apt-get install Oracle-java8-installer

e) Set the default JDK
    1. $ sudo update-alternatives--config java
    2. $ sudo update-alternatives--config javac

PS) If you need to uninstall the JDK installed through Apt-get, the command is as follows
    1. $ sudo apt-get remove--purge XXX


Edit environment variable: sudo gedit/etc/environment

JDK version view: java-version

Installation of JDK, Eclipse, ADT, CDT, Pydev in Ubuntu 12.04 LTS (64bit) environment

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.