[Odroid-pc] ubuntu12.04 jdk-6u45-linux-x64.bin, jdk6u45linuxx64

Source: Internet
Author: User

[Odroid-pc] ubuntu12.04 jdk-6u45-linux-x64.bin, jdk6u45linuxx64

1. Download jdk-6u45-linux-x64.bin.tar .**

2) Put it in a directory and decompress it.

3) execute the following command

Chmod + x jdk-6u45-linux-x64.bin

/Jdk-6u45-linux-x64.bin

Mkdir-p/usr/lib/jvm
Mv jdk1.6.0 _ 45/usr/lib/jvm

Update-alternatives -- install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.6.0 _ 45/bin/java" 1
Update-alternatives -- install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk1.6.0 _ 45/bin/javac" 1
Update-alternatives -- install "/usr/bin/javadoc" "javadoc" "/usr/lib/jvm/jdk1.6.0 _ 45/bin/javadoc" 1
Update-alternatives -- install "/usr/lib/mozilla/plugins/libjavaplugin. so "" mozilla-javaplugin.so ""/usr/lib/jvm/jdk1.6.0 _ 45/jre/lib/amd64/libnpjp2.so "1
Update-alternatives -- install "/usr/bin/javaws" "javaws" "/usr/lib/jvm/jdk1.6.0 _ 45/bin/javaws" 1
Update-alternatives -- install "/usr/bin/jar" "jar" "/usr/lib/jvm/jdk1.6.0 _ 45/bin/jar" 1

Update-alternatives -- config java
Update-alternatives -- config javac
Update-alternatives -- config javadoc
Update-alternatives -- config mozilla-javaplugin.so
Update-alternatives -- config javaws
Update-alternatives -- config jar

4) run the following command to check

Java-version
Javac-version

Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.

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.