[opensuse] Editting PATH variable
- From: "Stan Goodman" <stan.goodman@xxxxxxxxxxxxx>
- Date: Fri, 7 Sep 2007 16:32:04 +0300
The system is x86_64 openSuSE v10.2.
Previously, it contained jre v1.4.2, and PATH contained the string
</usr/lib64/jvm/jre/bin>.
Recently I updated to jre v1.6.0, and the new PATH string should be
</usr/java/jre1.6.0_02/bin> (but it remains as before, because I am not clear
on how to change it).
But then I decided that what I really need is a JDK, so I installed jdk
v1.6.0_02. The installer suggested installing in <~/jdk1.6.0_02/bin>, and I
accepted this. -- I am not uncomfortable with the JDK in the user directory,
with a JRE available for anyone else, so the new phrase in PATH should be
</usr/java/jre1.6.0_02/bin>, and the JDK equivalent should be in the user's
PATH.
The sources I have found from a Google search indicate that I should change the
global PATH variable by editing the file /etc/profile. But when I opened (as
root) that file, and searched for the string "jre" to find the place to edit, I
was unable to find it. Moreover, there is a warning at the top of that file
telling me that changes in the profile may not survive a system update, which
is discouraging. The fact that "jre" is not found at all is inexplicable to me,
since "jre" is known to be contained in the PATH, and I would like to
understand why it isn't present.
The 'Net offers much advice on how to add a directory to PATH by the sequence:
PATH = $PATH:<new string>
export PATH
but seems to ignore completely the question of changing existing directories.
How to go about this?
--
Stan Goodman
Qiryat Tiv'on
Israel
Idiotic commercials heard on CNN, #3: "It's funny how airlines always focus on the big things. To me, it's the little things that are important." -- for Scandinavian Airlines
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
- Follow-Ups:
- Re: [opensuse] Editting PATH variable
- From: G T Smith
- Re: [opensuse] Editting PATH variable
- Prev by Date: [opensuse] Re: USB IDE disk caddies [Was: Tape Drive for personal usage]
- Next by Date: Re: [opensuse] FTP download of 10.3 Beta3 DVD ISO
- Previous by thread: [opensuse] FTP download of 10.3 Beta3 DVD ISO
- Next by thread: Re: [opensuse] Editting PATH variable
- Index(es):
Relevant Pages
|