Results 1 to 4 of 4

Thread: Is it possible to run Sun's JDK 6 alongside a later version of openJDK?

  1. #1

    Default Is it possible to run Sun's JDK 6 alongside a later version of openJDK?

    I have openJDK 1.8 installed but I also need Sun's JDK 6 for a project (I also need Java 8 for my IDE). Do I need to uninstall openJDK or can they exist side by side?

  2. #2
    Join Date
    Sep 2008
    Posts
    2,997

    Default Re: Is it possible to run Sun's JDK 6 alongside a later version of openJDK?

    they can live side by side but oracle's rpm is buggy it needs some massaging to make it work with update-alternatives see this thread
    https://forums.opensuse.org/showthre...atives-on-Leap
    and edit that script to make it work with java 6
    that thread is about the java runtime you might need to tweak the java compiler javac too
    also check
    Code:
    man update-alternatives

  3. #3

    Default Re: Is it possible to run Sun's JDK 6 alongside a later version of openJDK?

    Quote Originally Posted by I_A View Post
    they can live side by side but oracle's rpm is buggy it needs some massaging to make it work with update-alternatives see this thread
    https://forums.opensuse.org/showthre...atives-on-Leap
    and edit that script to make it work with java 6
    that thread is about the java runtime you might need to tweak the java compiler javac too
    also check
    Code:
    man update-alternatives
    Are you sure I need that? JDK 6 isn't being updated anymore, so after I install it, that should be the last time it changes.

    I downloaded a ".bin" and it simply extracted the files into a directory.

  4. #4
    Join Date
    Sep 2008
    Posts
    2,997

    Default Re: Is it possible to run Sun's JDK 6 alongside a later version of openJDK?

    Quote Originally Posted by 6tr6tr View Post
    Are you sure I need that? JDK 6 isn't being updated anymore, so after I install it, that should be the last time it changes.

    I downloaded a ".bin" and it simply extracted the files into a directory.
    the thing with java (any version) is that opensuse can have multiple versions and you need to use update-alternatives to set the currently used java runtime and compiler, maybe the run file is better then the rpm so try running
    Code:
    update-alternatives --config java
    update-alternatives --config javac
    and see what happens
    check this rhle doc about using update-alternatives and java (it's about jdk6)
    https://access.redhat.com/documentation/en-US/JBoss_Enterprise_Web_Platform/5/html/Installation_Guide/sect-use_alternatives_to_set_default_JDK.html

    and one from sle
    https://www.novell.com/support/kb/doc.php?id=7008541

Posting Permissions

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