Install sun-java6-jre under Ubuntu12.10

Source: Internet
Author: User
Install sun-java6-jre process records under Ubuntu12.10. Manually modify the download source, command: root@www.linuxidc.com:/# cd/etc/aptroot@www.linuxidc.com:/etc/apt # cpsources.listsources.list.bakroot@www.linuxidc.com:/etc/apt # vimsources. l

Install sun-java6-jre process records under Ubuntu 12.10.

Manually modify the download source. The command is as follows:
Root @ www.linuxidc.com:/# cd/etc/apt
Root @ www.linuxidc.com:/etc/apt # cp sources. list sources. list. bak
Root @ www.linuxidc.com:/etc/apt # vim sources. list

Last line added: deb http://archive.canonical.com/ubuntu quantal partner
Root @ www.linuxidc.com:/etc/apt # apt-get install sun-java6-jdk
Reading the package list... complete
Analyzing the dependency tree of the software package
Reading status information... complete
The package sun-java6-jdk is a virtual package provided by the following package:
Oracle-java8-installer 8b78-0 ~ Webupd8 ~ 1
Oracle-java6-installer 6u41-0 ~ Webupd8 ~ 1
Oracle-java7-installer 7u15-0 ~ Webupd8 ~ 1
Select one for installation.


E: the package sun-java6-jdk does not have candidates for Installation
Root @ www.linuxidc.com:/etc/apt #


Root @ www.linuxidc.com:/etc/apt # apt-get install oracle-java6-installer
..........
Update-alternatives: using/usr/lib/jvm/java-6-oracle/bin/xjc to provide/usr/bin/xjc (xjc) in automatic mode
Oracle JDK 6 installed
Update-alternatives: using/usr/lib/jvm/java-6-oracle/jre/lib/i386/libnpjp2.so to provide/usr/lib/mozilla/plugins/libnpjp2.so (libnpjp2.so) in automatic mode
Oracle JRE 6 browser plugin installed
Setting gsfonts-x11 (0.22 )...
Root @ www.linuxidc.com:/etc/apt # java
Usage: java [-options] class [args...]
(To execute a class)
Or java [-options]-jar jarfile [args...]
(To execute a jar file)
.....
Root @ www.linuxidc.com:/etc/apt #

Root @ www.linuxidc.com:/etc/apt # java-version
Java version "1.6.0 _ 41"
Java (TM) SE Runtime Environment (build 1.6.0 _ 41-b02)
Java HotSpot (TM) Server VM (build between 14-b01, mixed mode)
Root @ www.linuxidc.com:/etc/apt #

(Sun-java6-jre, sun-java6-plugin sun-java6-fonts are also provided by the software package oracle-java6-installer virtual software packages so the installation of oracle-java6-installer can be)

Reference: x210ii user manual and terminal printing information

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

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.