[Fedora] Re: [Fedora] Re: [Fedora] Re: java (sun), java-openjdk and java-gcj

Deepak Bhole dbhole at redhat.com
Mon Sep 13 14:19:51 UTC 2010


* Walter Cazzola <cazzola at dico.unimi.it> [2010-09-13 10:14]:
> On Mon, 13 Sep 2010, Deepak Bhole wrote:
> 
> >Just went through the bcel package ... looks like it has a specific
> >requirement on java-gcj-compat. There is no way around that requirement
> >at your endpoint.
> 
> Ok, I see
> 
> >However, now that you have the compat package installed for Sun, you
> >can set alternatives to use that jvm. Install everything you need, let
> >it install OpenJDK and GCJ, and then as root, run:
> 
> >alternatives --config java
> >alternatives --config javac
> 
> >And select the Sun version in both cases, and your system will use that
> >for everything from there on.
> 
> uhm, yes this is a solution even if the compat package wasn't necessary
> another alternatives is to install the packages without yum (tgz) but I
> prefer to keep you to have the automatic updating of at the libraries.
> 

What do you mean? Alternatives wouldn't work without the compat package
installed as the Sun RPM does not set it up.

With the compat package installed and alternatives set manually, the
links go into manual mode and do not change when newer JDKs are
installed. That means that you can then yum update as often as you want
without having the JDK links change from the Sun JDK.

Deepak

> Thanks for the help
> Walter
> 
> -- 
> Walter Cazzola, PhD - Assistant Professor, DICo, University of Milano
> E-mail cazzola at dico.unimi.it Ph.: +39 02 503 16300  Fax: +39 02 503 16253
> · · · ---------------------------- · · · ---------------------------- · · ·
>                ... recursive: adjective, see recursive ...
> · · · ---------------------------- · · · ---------------------------- · · ·



More information about the users mailing list