** Reply to message from G T Smith <[EMAIL PROTECTED]>
on Fri, 07 Sep 2007 22:16:55 +0100

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Stan Goodman wrote:
> > ** Reply to message from G T Smith <[EMAIL PROTECTED]>
> > on Fri, 07 Sep 2007 20:27:20 +0100
> > 
> >> -----BEGIN PGP SIGNED MESSAGE-----
> >> Hash: SHA1
> >>
> 
> <snip>
> 
> > 
> > But at the moment, there are three questions on the practical level, of 
> > which
> > two remain problems:
> > 
> > 1) The jre was installed where it is by rpm without asking me; it is easy to
> > remove if I choose to do so; this is not a problem.
> 
> True..
> 
> > 2) The jdk was installed (foolishly, without thinking) in my home directory,
> > and I really want to remove, and to do so in such a way as not to make more
> > trouble for myself. The Software Management tool is of no help for this. How
> > should I go about removing it, so that I can reinstall from an rpm package?
> 
> I am a bit bemused by this... the SuSE install usually puts the JDK in
> the Java installation tree... Did you install with YaST or with the rpm
> installation tools? Yast should give you the option to remove it if it
> was installed via Yast...

No. The "foolishly, without thinking" was that I did NOT install with YaST; if
I had, the answer to (2) would have been the same as for (1), and no problem
would exist. What is a safe way to remove the jdk, given that YaST is of no
help?
 
> > 3) It is possible that the jdk installed by rpm will straighten out the PATH
> > question automatically. I would still like to know how one can revise or 
> > remove
> > a directory (i.e. the string between two colons) in the PATH variable. Can
> > someone tell me that?
> > 
> 
> Here you are talking about modifying the bash profiles... Where you make
> the changes depends on whether you want the path to change globally or
> for a particular user, or on login.

I would like to understand both the global and user-only cases. For each of
these, I am most interested in producing a permanent change that will survive
reboot, so what you have called "on logon".
> 
> 
> /etc/profile for system wide configuration
> ~/.bash_profile ~/.bash_login or ~/.profile) for user login
> ~/.bashrc for non login shells

For the user login case, one can use any of the three you mention? Are these
aliases for a single file?

> for a starter
> 
> these are effectively scripts and some knowledge of BASH scripting is a
> good idea before attempting to modify these, (and read the BASH
> documentation). Getting this wrong could make life rather interesting :-)
> 
> For Java use editing the PATH variable is NOT required...

As I have said, I am currently operating successfully with an incorrect PATH
variable. But that means that I have to specify the full pathname for the
<java> executable, whereas if the PATH were correct, I could just call it
"java". There is no difference between Java and any other executable -- one
either specifies full pathname, or needs to have a correct pointer in PATH.. 

I too am bemused. I think the insistence that the PATH is irrelevant comes
because you are thinking of the various java apps one might be using, rather
than the java executable. I am thinking of the latter alone, and PATH is
convenient, if not necessary.

-- 
Stan Goodman
Qiryat Tiv'on
Israel

>From REAL answers on children's science examinations (#5):
Q: What causes the tides in the oceans?
A: The tides are a fight between the Earth and the Moon. All water tends to 
flow towards the moon, because there is no water on the moon, and nature hates 
a vacuum. I forget where the sun joins in this fight.
-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to