Re: Using Sun's JRE 1.5.0-3 next to java-1.4.2-gcj?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 5/16/05, Patrick <fedora@xxxxxxxxxxxxxxxxx> wrote:
> Apps like Azureus, Ganttchart and CentricCRM won't run (yet) with
> jre-1.4.2-gcj so I would like to use Sun's JRE 1.5.0-3. Anyone have a
> suggestion how I can force those apps to use Sun's JRE installed in
> e.g. /opt/java. Setting PATH=/opt/java:$PATH and JAVA_HOME=/opt/java
> doesn't work.

You should try rebuilding the Jpackage "nosrc" rpm of the Sun JRE and
installing that, instead of using the JRE directly -- instructions at
http://www.jpackage.org/rebuilding.php

Once you've done that, you can change where the "alternatives" link
for java as follows (as root):
    /usr/sbin/alternatives --set java /usr/lib/jvm/jre-1.5.0-sun/bin/java

Then "/usr/bin/java" will be the Sun JRE, and all your apps should use
it by default.

There's no GUI config tool for alternatives, is there; it would be nice ...

MEF

-- 
__ Mary Ellen Foster __ http://homepages.inf.ed.ac.uk/mef/ __
"One of the main causes of the fall of the Roman Empire was that, 
lacking zero, they had no way to indicate successful termination 
of their C programs." (Robert Firth)


[Index of Archives]     [Fedora Desktop]     [Fedora SELinux]     [Photo Sharing]     [Yosemite Forum]     [KDE Users]