How to install the Sun Java JDK on Ubuntu 10.10 (Maverick Meerkat)?

后端 未结 13 1738
一整个雨季
一整个雨季 2020-12-02 05:33

I\'ve tried to add the Canonical Partner repository, but I still can\'t find the sun-java6-jdk package. What is the right way to install the Oracle Sun JDK inst

13条回答
  •  旧时难觅i
    2020-12-02 06:12

    Installation:

    for 10.10:

    sudo add-apt-repository "deb http://archive.canonical.com/ maverick partner"
    

    for 11.04

    sudo add-apt-repository "deb http://archive.canonical.com/ natty partner"
    

    Continue with:

    sudo apt-get update
    sudo apt-get install sun-java6-jre sun-java6-plugin
    

    Use as default:

    sudo update-alternatives --config java
    

    Installing JDK:

    sudo apt-get install sun-java6-jdk
    

    Source code (to be used in development):

    sudo apt-get install sun-java6-source
    

    Source of these instructions: https://help.ubuntu.com/community/Java

提交回复
热议问题