Results 1 to 3 of 3

Thread: OpenJDK and Sun (Oracle) JDK

  1. #1
    Join Date
    Jun 2007
    Location
    Maryland, US
    Beans
    6,288
    Distro
    Kubuntu

    OpenJDK and Sun (Oracle) JDK

    I prefer to use the Sun (Oracle) JDK on my system, and thus I have it installed, and I thought I had removed OpenJDK. Yet when I examine both 'java' and 'javac', I see the following:
    Code:
    $ ls -l /usr/bin/java /usr/bin/javac
    lrwxrwxrwx 1 root root 22 2010-10-09 00:04 /usr/bin/java -> /etc/alternatives/java*
    lrwxrwxrwx 1 root root 23 2010-10-12 21:04 /usr/bin/javac -> /etc/alternatives/javac*
    
    $ ls -l /etc/alternatives/java /etc/alternatives/javac
    lrwxrwxrwx 1 root root 40 2010-10-09 00:04 /etc/alternatives/java -> /usr/lib/jvm/java-6-openjdk/jre/bin/java
    lrwxrwxrwx 1 root root 33 2010-10-12 21:04 /etc/alternatives/javac -> /usr/lib/jvm/java-6-sun/bin/javac
    Note the difference... one is using openjdk, the other java-6-sun. Is this normal?

    When browsing the installed packages via the Synaptic Package Manager, I see the java-6-sun installed, and open-jdk as not installed (see attached image).

    Should this be a concern?
    Attached Images Attached Images

  2. #2
    Join Date
    Jun 2007
    Location
    Maryland, US
    Beans
    6,288
    Distro
    Kubuntu

    Re: OpenJDK and Sun (Oracle) JDK

    Never mind. I just realized in this late hour, I was confusing JDK with JRE. Apparently I still had the OpenJDK JRE package still installed. By removing it, now my system is all well.

    Code:
    ls -l /etc/alternatives/java /etc/alternatives/javac
    lrwxrwxrwx 1 root root 36 2011-09-09 21:43 /etc/alternatives/java -> /usr/lib/jvm/java-6-sun/jre/bin/java
    lrwxrwxrwx 1 root root 33 2010-10-12 21:04 /etc/alternatives/javac -> /usr/lib/jvm/java-6-sun/bin/javac

  3. #3
    Join Date
    Jul 2008
    Beans
    2,732

    Re: OpenJDK and Sun (Oracle) JDK

    I just checked on my setup and I don't show anything for OpenJDK when I type in the same as you. I would work on removing it. GL

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
  •