-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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 :
export PATH=/usr/java/j2sdk1.4.2_08/bin:$PATH
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,
John.
- --
BOFH excuse #1: clock speed
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQFCUnmHQBw+ZtKOvTIRAkGjAJ46iYgzEJN2B4UBwly4+woZZE+rwACfXoAN
hhLzqBbqrO3ZLDom8PwDoQ8=
=9/gk
-----END PGP SIGNATURE-----
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!