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

后端 未结 13 1667
一整个雨季
一整个雨季 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条回答
  • 2020-12-02 06:09

    Ubuntu reporsitories can be more useful

    https://wiki.ubuntu.com/LucidLynx/ReleaseNotes#Sun%20Java%20moved%20to%20the%20Partner%20repository

    0 讨论(0)
  • 2020-12-02 06:10

    Currently the Sun Java 6 packages are working fine now for Ubuntu 10.10 and 10.04 users. It works fine for me.

    sudo apt-get install python-software-properties
    
    sudo add-apt-repository ppa:sun-java-community-team/sun-java6
    
    sudo apt-get update
    
    sudo apt-get install sun-java6-jdk
    
    0 讨论(0)
  • 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

    0 讨论(0)
  • 2020-12-02 06:16

    Update (2010/10/01): Yesss, Sun Java Finally Uploaded To The Ubuntu 10.10 Maverick Official Partner Repository.


    Update (2010/09/27): Readers might want to check Sun Java6 Packages [updated]. I still expect official packages to be available in the partner repos at releast time though.


    For an unknown reason, the sun-java6-jdk are not yet available in the partner repositories.

    So either downloaded the required packages from http://archive.canonical.com/pool/partner/s/sun-java6/ and install them with dpkg -i.

    Or temporarily replace the maverick partner repository

    http://archive.canonical.com/ubuntu maverick partner
    

    by the lucid one (replace maverick by lucid in the above line, let me know if you need more help to do this). Then, install sun-java6. And revert the change.

    0 讨论(0)
  • 2020-12-02 06:16

    Here are step-by-step instructions, How to install Sun Java JDK in Ubuntu 10.10 Maverick Meerkat.

    0 讨论(0)
  • 2020-12-02 06:20

    This worked for me:

    sudo add-apt-repository ppa:sun-java-community-team/sun-java6
    
    sudo apt-get update
    
    sudo apt-get install sun-java6-jre sun-java6-jdk
    
    0 讨论(0)
提交回复
热议问题