LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] problem setting up jre in fedora core 3

[ILUG] problem setting up jre in fedora core 3

John Madden maddenj+ilug at skynet.ie
Tue Apr 5 12:42:00 IST 2005


-----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-----



More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell