Software sources for sun-java6-jre and sun-java6-jdk

Source: Internet
Author: User
Sun-java6-jre and sun-java6-jdk software source-Linux general technology-Linux technology and application information, the following is a detailed reading. # Shanghai Jiao Tong University server update:
Deb http://ftp.sjtu.edu.cn/ubuntu/ karmic main multiverse restricted universe
Deb http://ftp.sjtu.edu.cn/ubuntu/ karmic-backports main multiverse restricted universe
Deb http://ftp.sjtu.edu.cn/ubuntu/ karmic-proposed main multiverse restricted universe
Deb http://ftp.sjtu.edu.cn/ubuntu/ karmic-security main multiverse restricted universe
Deb http://ftp.sjtu.edu.cn/ubuntu/ karmic-updates main multiverse restricted universe
The deb-src http://ftp.sjtu.edu.cn/ubuntu/ karmic main multiverse restricted universe
Deb-src Co., http://ftp.sjtu.edu.cn/ubuntu/. karmic-backports main multiverse restricted universe
Deb-src http://ftp.sjtu.edu.cn/ubuntu/ karmic-proposed main multiverse restricted universe
Deb-src http://ftp.sjtu.edu.cn/ubuntu/ karmic-security main multiverse restricted universe
Deb-src http://ftp.sjtu.edu.cn/ubuntu/ karmic-updates main multiverse restricted universe

Ubuntu10.10 adds the 9.10 source and runs apt-get update.
Then in apt-get install sun-java6-jdk can

Installed in/usr/lib/jvm/by default /....

$ Sudo gedit/etc/profile
Add at the end of the file

# Set java environment

JAVA_HOME =/usr/lib/jvm/jdk1.6.0 _ 24

Export JRE_HOME =/usrlib/jvm/jdk1.6.0 _ 24/jre

Export CLASSPATH =.: $ JAVA_HOME/lib: $ JRE_HOME/lib: $ CLASSPATH

Export PATH = $ JAVA_HOME/bin: $ JRE_HOME/bin: $ PATH

Restart the computer and run the command to test the jdk version.

Java-version

The following information is displayed: the installation is successful.

Java version "1.6.0 _ 24"
Java (TM) SE Runtime Environment (build 1.6.0 _ 24-b04)
Java HotSpot (TM) Server VM (build 11.2-b01, mixed mode)
Liangshihong @ liangshihong-Imagine :~ $

I tried it. No problem.
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.