Oops, this is the second time I answer as the first one did not seem to
reach it's destination. I won't sign it this time to check it's not the
problem...
Michael Compton wrote:
> Hello,
> I'm sure this is a stupid question, but I'm stumped:
"A silly question is the first step of a totally new development."
(You'll
know the author the next time this signature will have been randomly
selected by my box).
> I've installed the 1.1.5 glibc JDK on my RedHat 4.2 Pentium. Whenever I
[SNIP]
> I always get "command
> not found".
The script "java/bin/.java-somethingIdontRemember" to which point most
of
the /java/bin/... files has a problem: it begins in this way: compute
J_HOME as the supposed location of the JDK progs
if JAVA_HOME is not set
then JAVA_HOME=$J_HOME
fi
... same kinda things about CLASSPATH ...
execute $J_HOME/program_asked_by_the_user
Even if JAVA_HOME is set, as long as you use a shell that does not
compute
J_HOME correctly (this is my case with JDK 1.0.2), it won't work. You
have
two solution: either you use another shell (zsh or tcsh may work), or
you
modify the script's structure in this way:
compute J_HOME as the supposed location of the JDK progs
if JAVA_HOME is not set
then
compute J_HOME as the supposed location of the JDK progs using
another
method or another shell
JAVA_HOME=$J_HOME
else J_HOME=$JAVA_HOME
fi
... same kinda things about CLASSPATH ...
execute $J_HOME/program_asked_by_the_user
Of course, adding the "else" part and setting correctly you JAVA_HOME in
you
.profile makes things even easier.
> Thanks much,
> Michael Compton
> [EMAIL PROTECTED]
--
Xavier Lagraula
[EMAIL PROTECTED]
"We are here and it is now.
Further than that all human knowledge is moonshine."
H. L. Mencken
begin: vcard
fn: Xavier Lagraula
n: Lagraula;Xavier
email;internet: [EMAIL PROTECTED]
x-mozilla-cpt: ;0
x-mozilla-html: TRUE
version: 2.1
end: vcard
begin: vcard
fn: Xavier Lagraula
n: Lagraula;Xavier
email;internet: [EMAIL PROTECTED]
x-mozilla-cpt: ;0
x-mozilla-html: TRUE
version: 2.1
end: vcard