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.
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.
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
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
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.
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
openJDK is installed by default and should work but if you have issues remove it and install it as jony127 suggested.
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
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
man update-alternatives
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 ::
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
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 ).
Hi,
you’re right, of course!
Lenwolf
The problem I’ve read is that a serious bug in java6, and that the license change can not publish updates for the distributions.
Am 19.12.2011 20:36, schrieb jony127:
>
> The problem I’ve read is that a serious bug in java6, and that the
> license change can not publish updates for the distributions.
>
You have to check in which exact version of java 6 this bug exists and
in which version it is fixed and then compare it to the version you have.
java -version
the build number is the important information here.
–
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
Hi,
Are you sure that isn’t java 7 you’re talking about?
If so, then the latest version of the Oracle jdk fixed that big AFAIK.
HTH
Lenwolf
lenwolf wrote:
>
> hcvv;2419771 Wrote:
>> 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.
>
Thanks for that info.
I use OpenSuse 12.1 and jdk 1.7 from Oracle because I also use NetBeans.7
With your script I now have java 1.7 everywhere inside and outside NetBeans
and it is good news.
Hi,
in OO or LO goto tools/options and in the first tab look for the java entry. There you can either select NOT to have java at all, or else indicate the jvm you want to use.
HTH
Lenwolf