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

Thread: which version of java to use?

  1. #1

    Default which version of java to use?

    Hello,

    I have opensuse 11.4 with Sun Java. Would I recommend remove this version and install the openjdk java?

    Can there be problems of compatibility?

    Thank you.

  2. #2
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    4,654

    Default Re: which version of java to use?

    Am 18.12.2011 14:46, schrieb jony127:
    >
    > Hello,
    >
    > I have opensuse 11.4 with Sun Java. Would I recommend remove this
    > version and install the openjdk java?
    >
    > Can there be problems of compatibility?
    >
    > Thank you.
    >
    >

    Yes there can be problems with compatibility, some applications and web
    based applets are programmed in a way which makes them not compatible
    with openjdk. After oracle decided that with version 7 openjdk is the
    reference implementation of java I expect in the future that this
    problem will disappear sooner or later (I guess later).

    So I would not remove it now if you have no special reason to do so.

    --
    PC: oS 11.4 (dual boot 12.1) 64 bit | Intel Core i7-2600@3.40GHz | KDE
    4.6.0 | GeForce GT 420 | 16GB Ram
    Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.7.4 |
    nVidia ION | 3GB Ram

  3. #3

    Default Re: which version of java to use?

    jony127 wrote:

    >
    > Hello,
    >
    > I have opensuse 11.4 with Sun Java. Would I recommend remove this
    > version and install the openjdk java?
    >
    > Can there be problems of compatibility?
    >


    I had Sun Java in an 11.4 installation but LibreOffice complained about it
    and after I switched to openjdk the complaints disappeared. So compatibilty
    problems can work both ways.

    --
    Graham Davis, Bracknell, Berks.
    openSUSE 12.1 (64-bit); KDE 4.7.4; AMD Phenom II X2 550 Processor;
    Video: nVidia GeForce 210 (using nouveau driver);
    Sound: ATI SBx00 Azalia (Intel HDA); Wireless: BCM4306

  4. #4
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    12,193
    Blog Entries
    3

    Default Re: which version of java to use?

    Openjdk was a bit iffy for me in opensuse 11.3. However, with 11.4 it worked quite well, at least until an update broke it. At that point I installed Sun Java, so I'm not actually sure whether openjdk was still broken for 11.4

    I'm now using opensuse 12.1, and openjdk is working quite well. I don't think Sun Java is available for 12.1 - at least not in the standard repos.
    openSUSE Leap 15.1; KDE Plasma 5;

  5. #5
    Join Date
    Jun 2008
    Location
    Stoney Stanton - England
    Posts
    1,094

    Default Re: which version of java to use?

    if openjdk works ok for you stick with that if you hit a problem you can remove it and install java from:-

    Index of /repositories/Java:/sun:/Factory/openSUSE_Factory/x86_64

  6. #6
    Join Date
    Aug 2008
    Location
    Pitesti, Arges County, Romania
    Posts
    595

    Default Re: which version of java to use?

    Quote Originally Posted by jony127 View Post
    ...
    openJDK is installed by default and should work but if you have issues remove it and install it as jony127 suggested.
    openSUSE Community Member: -> en.opensuse.org/User:Creatura85
    Connect Profile:
    -> connect.opensuse.org/pg/profile/creatura85
    openSUSE Romania Member: -> suseromania.ro

  7. #7
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    4,654

    Default Re: which version of java to use?

    Am 18.12.2011 21:16, schrieb creatura85:
    >
    > jony127;2419635 Wrote:
    >> ...

    > openJDK is installed by default and should work but if you have issues
    > remove it and install it as jony127 suggested.
    >
    >

    The OP tells us that the system in use already has the sun/oracle
    version installed and asks if it is better to use openjdk not the other
    way around.

    --
    PC: oS 11.4 (dual boot 12.1) 64 bit | Intel Core i7-2600@3.40GHz | KDE
    4.6.0 | GeForce GT 420 | 16GB Ram
    Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.7.4 |
    nVidia ION | 3GB Ram

  8. #8
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,733

    Default Re: which version of java to use?

    You can have installed both and make one the default with update-alternatives. That means that most applications will use the default you have set and applications that explicitly want the other one are also happy. See
    Code:
    man update-alternatives
    Henk van Velden

  9. #9

    Default Re: which version of java to use?

    Quote Originally Posted by hcvv View Post
    You can have installed both and make one the default with update-alternatives. That means that most applications will use the default you have set and applications that explicitly want the other one are also happy.
    Hi, that only works if you install the Oracle (formerly sun) java from the OpenSUSE repos. AFAIK, this will no longer be possible for java 7, since Oracle changed the license (but I may be wrong there).

    You can always get the sun JDK from Oracle's website and install it. This will generally install into /usr/java/latest (which is a link to the real install dir).

    If you later use config-alternatives for java, the sun java won't be listed there and it won't work, since the installer for the sun jdk will put direct links into the /bin irectory.

    I generally delete these links (so that those in /etc/alternatives work and I made a small script to use the sun jdlk ::

    Code:
    ln -sf /usr/java/latest/bin/javac /etc/alternatives/javac
    ln -sf /usr/java/latest/bin/javah /etc/alternatives/javah
    ln -sf /usr/java/latest/bin/javaws /etc/alternatives/javaws
    ln -sf /usr/java/latest/bin/javap /etc/alternatives/javap
    ln -sf /usr/java/latest/bin/javadoc /etc/alternatives/javadoc
    ln -sf /usr/java/latest/bin/jar /etc/alternatives/jar
    ln -sf /usr/java/latest/bin/java /etc/alternatives/java
    that reinstates the sun jdk if I want it.

    HTH

    Lenwolf

  10. #10
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,733

    Default Re: which version of java to use?

    Hm, yes, my info might be out of date. Thanks for this very usefull addition.
    BTW it is update-alternatives, not config-alternatives IIRC (but I have allways problems to remember the name of it ).
    Henk van Velden

Page 1 of 2 12 LastLast

Posting Permissions

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