** Reply to message from G T Smith <[EMAIL PROTECTED]>
on Sat, 08 Sep 2007 00:46:00 +0100

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Stan Goodman wrote:
> > ** 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
> >>>
> >>> 2) The jdk was installed (foolishly, without thinking) in my home 
> >>> directory,
> > 
> <snip>
> 
> > 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?
> >  
> 
> Therefore I assume that you installed with rpm without running the
> SuSEconfig script ... uninstalling with rpm should remove the package
> without any problems... not knowing what you options you used to install
> I would refer to the rpm manpage for the appropriate options to
> uninstall...

This must refer to the jre package, <jre-1.6.0_02-fcs> (which YaST shows with a
padlock - how do I remove the protection?).

But the installed jdk doesn't show in the list of packages at all, because it
was not installed with rpm; it came with its own installer, as
<jdk-6u2-nb-5_5_1-linux-ml.bin>. How to remove it?

> <snip>
> 
> >> 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
> 
> This is the system wide profile... there are other scripts in profile.d
> that are used, it is called before...
> 
> >> ~/.bash_profile ~/.bash_login or ~/.profile) for user login
> 
> (Actually, these are not aliases so much as alternates, the shell
> searches for these files in that order... a login shell is the initial
> login prompt shell)...Different distros do vary a bit on this..
> 
> or
> 
> >> ~/.bashrc for non login shells
> 
> which is used for further instances of the shell.
> 
> These are related to settings in /etc/sysconfig.. in most cases user
> modifications should placed in <profile>.local (read docs for more
> detail than really be given in an email).
> 
> I will repeat it is not a good idea to make changes to these unless you
> have a good knowledge of bash/sh, if you do wish to experiment use a
> local settings in a test account.

That is good advice that I might not have thought of soon enough. Thank you.

> If your unfamiliar with Bash a good book is 'Learning the Bash Shell' by
> Newham and Rosenblatt. There is also a bash guide somewhere in the user
> documentation (cant for the life of me remember where should be at the
> moment)...

I do have the Newham and Rosenblatt book;  it arrived here only a few days ago.
Thanks for suggesting it, and confirming that I chose a good one.

> 
> >> 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
> 
> Once you have loaded the java instance it does not care.. If you have a
> close look at the bin directories you will come across links to things
> in other directories... The standard path finds the link and then
> executes the program.. simple... The SuSE rpm sets up this link ...
> There is Randalls interesting suggestion which I had not heard any
> references to before (which is something new to explore :-) ).


This is mentioned on Novell's page at <http://en.opensuse.org/java>. I think I
will avoid the need for it by settling on only one jvm, which would be the jdk.
This page also tells me that there is no Su/se jdk for v1.6, only for v1.5,
which it explains how to install.
 
> If you  really are worried about having the path include the location of
> the java directory then invoke java with a script that sets appropriate
> path changes then calls java ...

I may just leave the superfluous path where it is, and avoid unnecessary
complication.

-- 
Stan Goodman
Qiryat Tiv'on
Israel

REAL similes/metaphors by high school students; #15: They lived in a typical
suburban neighborhood with picket fence that resembled Nancy Kerrigan's teeth.
-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to