[ILUG] problem setting up jre in fedora core 3
Joseph Kiniry
kiniry at acm.org
Tue Apr 5 19:11:25 IST 2005
Hi Gavin,
Fedora uses the "alternatives" system that automatically can maintain
symlinks to multiple choices
of applications (e..g, mail servers, Java installs, etc.).
See the manpage for alternative (8) for more details.
Joe
On 5 Apr, 2005, at 11:11, gavin mc auley wrote:
> I am a linux newbie and i have been trying to set up a java runtime
> enviroment under fedora core 3.
>
> I installed the j2sdk-1.4.2_08 RPM in self extracting file. the
> rpm.bin file.
>
> This installed java in the following directory.
>
> /usr/java/j2sdk1.4.2_08
>
> when i run the command /usr/java/j2sdk1.4.2_08/bin/java -version
>
> i get the correct output
>
> java version "1.4.2_08"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_08-b03)
> Java HotSpot(TM) Client VM (build 1.4.2_08-b03, mixed mode)
>
> however when i run the java -version command without providing the
> path i get the following output
>
> libgcj-java-placeholder.sh
>
> This script is a placeholder for the /usr/bin/java
> master link required by jpackage.org conventions. libgcj's
> rmiregistry, rmic and jar tools are now slave symlinks to these
> masters, and are managed by the alternatives(8) system.
>
> This change was necessary because the rmiregistry, rmic and jar tools
> installed by previous versions of libgcj conflicted with symlinks
> installed by jpackage.org JVM packages.
> gij (GNU libgcj) version 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)
>
> Copyright (C) 2002 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions. There
> is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
> PURPOSE.
>
> There seems to be a conflicting version of java. I tried creating a
> file java.sh in the /etc/profile.d directory.
>
> I would like to make my install of java the default java runtime
> enviroment, so that when i run the command java it points to the
> /usr/java/j2sdk1.4.2_08 directory.
>
> how is this accomplished. appreciate any help.
>
> --
> Irish Linux Users' Group
> http://www.linux.ie/mailman/listinfo/ilug/
>
More information about the ILUG
mailing list