Results 1 to 3 of 3

Thread: problem with sun-java6-jdk

  1. #1
    Join Date
    Oct 2012
    Beans
    52

    problem with sun-java6-jdk

    Hi all,
    i am trying to install Bluej on ubuntu 12.04. In the website i found out that first at all i have to install the sun-java6-jdk but
    after my input
    Code:
    sudo apt-get install sun-java6-jdk
    this is the output

    Code:
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Package sun-java6-jdk is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source
    
    E: Package 'sun-java6-jdk' has no installation candidate
    how can i solve the problem?
    thank you

  2. #2
    Join Date
    Apr 2008
    Location
    LOCATION=/dev/random
    Beans
    5,767
    Distro
    Ubuntu Development Release

    Re: problem with sun-java6-jdk

    The official Java isn't allowed in the repositories any more ever since Oracle changed the licensing terms. There are 2 options available to you, either install Open JDK from the repositories or follow the steps here to install Oracle Java.

    All of this information can be found on the Ubuntu Java wiki page:
    https://help.ubuntu.com/community/Java
    Cheesemill

  3. #3
    Join Date
    Oct 2012
    Beans
    187

    Re: problem with sun-java6-jdk

    Oracle's original java jdk can not be installed via repository.

    What you can do via repository is to use openjdk. It works in most of the cases.
    Version 7 (latest)
    Code:
    sudo apt-get install openjdk-7-jdk
    Version 6
    Code:
    sudo apt-get install openjdk-6-jdk
    If you must use the original Oracle's JDK then use the link given in cheesemill's post.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •