Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: SuSE 11.2 default Java version?

  1. #1

    Default SuSE 11.2 default Java version?

    Right now, I have both IcedTea and Sun's version of Java installed. When I type
    Code:
    java -version
    I get:
    Code:
    java version "1.6.0_18"
    OpenJDK Runtime Environment (IcedTea6 1.8.1) (suse-1.1.3-i386)
    OpenJDK Client VM (build 14.0-b16, mixed mode)
    I want my java apps to use Sun's version of java and not IcedTea. I was told that most distros have a tool that allows you to choose which version of Java is the default. Does SuSE 11.2 have this tool? If so, where? How can I tell the system to use Sun java as the default?

  2. #2
    Join Date
    Jun 2008
    Location
    The English Lake District. UK - GMT/BST
    Posts
    36,733
    Blog Entries
    20

    Default Re: SuSE 11.2 default Java version?

    I usually remove the IcedTea version if I install the Sun version
    Leap 15.1_KDE
    My Articles Was I any help? If yes: Click the star below

  3. #3

    Default Re: SuSE 11.2 default Java version?

    That's good to know. I was wondering if I could do that.

  4. #4
    Join Date
    Jun 2008
    Location
    The English Lake District. UK - GMT/BST
    Posts
    36,733
    Blog Entries
    20

    Default Re: SuSE 11.2 default Java version?

    It may depend on other apps you have that may require IcedTea, If you can't remove it, you should only use one of the browser plugins
    Leap 15.1_KDE
    My Articles Was I any help? If yes: Click the star below

  5. #5
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,167

    Default Re: SuSE 11.2 default Java version?

    But when some apps need them, better do not deinstall (as caf4926 already said).
    There is a tool to tell which one to use by those that are indifferent and I used it for (more or less) the same reason.

    But I forgot the name. I come back when I remember.
    Henk van Velden

  6. #6
    Join Date
    Jun 2008
    Location
    Earth - Denmark
    Posts
    10,730

    Default Re: SuSE 11.2 default Java version?

    use YaST to uninstall icetea...then, try again..

    if it still doesn't pick up SUN java, reinstall it (in YaST)..

    --
    DenverD
    CAVEAT: http://is.gd/bpoMD [posted via NNTP w/openSUSE 10.3]
    When it comes to chocolate, resistance is futile.

  7. #7

    Default Re: SuSE 11.2 default Java version?

    Before I removed the IcedTea version, I had Yast check the dependencies and it said all was ok, so I went ahead and removed it.

    For my browser plugin, I have been using Sun's java so I'm pretty sure it will be ok. I just started one of my java apps and it started right up just fine.

    So now, when I check the java version, I get:
    Code:
    java -version
    java version "1.6.0_21"
    Java(TM) SE Runtime Environment (build 1.6.0_21-b06)
    Java HotSpot(TM) Client VM (build 17.0-b16, mixed mode)
    DO post the tool to tell which one to use by those that are indifferent though. You never know if it might be needed in the future.

  8. #8
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,167

    Default Re: SuSE 11.2 default Java version?

    Found it. It is update-alternatives . Look at it's man page. And to see the Java versions you have use
    Code:
    update-alternatives --list java
    to begin with.
    Henk van Velden

  9. #9

    Default Re: SuSE 11.2 default Java version?

    Thanks guys!
    I put the command into a text file for my reference for next time.

  10. #10

    Default Re: SuSE 11.2 default Java version?

    Quote Originally Posted by hcvv View Post
    Found it. It is update-alternatives . Look at it's man page. And to see the Java versions you have use
    Code:
    update-alternatives --list java
    to begin with.
    Also to change:
    Code:
    update-alternatives --config java
    This should give choices similar to this and allow you to select your default.

    Code:
    # update-alternatives --config java
    
    There are 2 alternatives which provide `java'.
    
      Selection    Alternative
    -----------------------------------------------
              1    /usr/lib/jvm/jre-1.6.0-sun/bin/java
    *+        2    /usr/lib/jvm/jre-1.6.0-openjdk/bin/java
    
    Press enter to keep the default[*], or type selection number:

Page 1 of 2 12 LastLast

Tags for this Thread

Posting Permissions

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