[ILUG] problem setting up jre in fedora core 3
maddenj+ilug at skynet.ie
Tue Apr 5 12:42:00 IST 2005
-----BEGIN PGP SIGNED MESSAGE-----
On (05/04/05 11:11), gavin mc auley didst pronounce:
> 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.
I don't use Fedora, so I don't know the Fedora specific way (if there is
one) of doing this. But, you've got two options. Firstly, you can set
your PATH to include /usr/java/j2sdk1.4.2_08/bin _before_ the default
path. So, the following would accomplish this :
presuming the shell you're using is bash. If you're using tcsh, replace
export with setenv above. To make this the default every time you login,
put the above into .bashrc or .bash_profile (for bash) or .login (I
think, for tcsh).
The second way is to remove the current symlink in /usr/bin and replace
it with one to the real java :
rm /usr/bin/java && ln -s /usr/java/j2sdk1.4.2_08/bin/java /usr/bin/java
This command will have to be run as root.
Hope this helps, though I'm sure someone else will follow up with the
"correct" Fedora way to do this!
Chat ya later,
BOFH excuse #1: clock speed
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
-----END PGP SIGNATURE-----
More information about the ILUG