Michael Compton wrote:
> Hello,
> I'm sure this is a stupid question, but I'm stumped:
>
> I've installed the 1.1.5 glibc JDK on my RedHat 4.2 Pentium. Whenever I
> try to run java or the other apps in the bin directory, I get "command
> not found". I'm pretty sure my PATH, CLASSPATH, and library paths are
> OK; I can run javac without a problem, but running java, jre, or other
> apps gives me a "comand not found". I've even connected directly to
> the java bin directory, triple checked that java (and java_ns and
> java_dyn) are executable by everyone (and owner and group), and have
> explicitly specified the file (i.e. "./java"). I always get "command
> not found".
>
I know nothing of ver 1.1.5, but... I've just downloaded V1.0.2 and I had a
similar prob, so my experience may be of some help. Most executables in
java/bin are symbolic links to
java/bin/.java-*somethingIdontRememberAndAsIAmUnderWin95ForTheMomentIcantHaveALook*In
this script, the values for JAVA_HOME and CLASSPATH are checked and created
if needed. My problem was: I didn't set these values, I made "links to the
links" in /usr/local/bin and the way the links were resolved was erroneous.
More stupid: in this script, even if the value of JAVA_HOME was set, the
local and erroneous J_HOME variable was used to locate the required program.
Looks like:
if JAVA_HOME is not set
then compute J_HOME
fi
execute J_HOME/program
If J_HOME is not correctly computed, the script won't work even if JAVA_HOME
is set.
Solution: modify the script in this way:
if JAVA_HOME is not set
then compute J_HOME
else J_HOME = JAVA_HOME
fi
execute J_HOME/program
Check it. The only bemol is that the error message was not the same in my
case: the script generated a line like "$program could not be found in
$J_HOME" But who knows?..
--
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
S/MIME Cryptographic Signature