Ubuntu12.04 install Java 6 JDK in lts [verify availability]

Source: Internet
Author: User

1. Add the source:

Deb http://us.archive.ubuntu.com/ubuntu/ hard multiverse.

Method:

Sudo gedit/etc/APT/sources. List
Open source list, add

Deb http://us.archive.ubuntu.com/ubuntu/ hard multiverse. Save and exit.

2. sudo apt-Get update

3. sudo apt-Get install sun-java6-jdk

4,

Configure the default Java version
Root @ Ubuntu:/etc/Apt # sudo Update-alternatives -- config Java
There are 2 choices for the alternative Java (providing/usr/bin/Java ).

Selection path priority status
------------------------------------------------------------
* 0/usr/lib/JVM/java-6-openjdk-amd64/JRE/bin/Java 1061 Auto Mode
1/usr/lib/JVM/java-6-openjdk-amd64/JRE/bin/Java 1061 manual mode
2/usr/lib/JVM/Java-6-sun/JRE/bin/Java 63 manual mode

Press enter to keep the current choice [*], or type selection number: 2
Update-Alternatives: Using/usr/lib/JVM/Java-6-sun/JRE/bin/Java to provide/usr/bin/Java (Java) in manual mode.
Root @ Ubuntu:/etc/Apt # Java-version
Java version "1.6.0 _ 06"
Java (TM) se Runtime Environment (build 1.6.0 _ 06-b02)
Java hotspot (TM) 64-bit server VM (build 10.0-b22, mixed mode)

#! /Bin/sh
Sudo add-Apt-repository "Deb http://archive.canonical.com/lucid partner"
Sudo add-Apt-repository "Deb-Src http://archive.canonical.com/ubuntu lucid partner"
Sudo apt-Get update

Sudo apt-get-y install Git-core GnuPG flex bison gperf build-essential zip curl zlib1g-dev libc6-dev lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev g ++-multilib mingw32 tofrodos

Sudo apt-get-y install sun-java6-jdk
Sudo apt-get-y install Thunderbird
Sudo apt-get-y install Subversion
Sudo apt-get-y install gedit-latex-plugin gedit-plugins
Sudo apt-get-y install wine gtkterm stardict-gnome ghex p7zip p7zip-rar vim-gnome emacs23-gtk exuberant-ctags cscope indent astyle openssh-Server

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.