"Alexander A. Basa" wrote:

> i just installed a linuxbox and noticed that i dont have any java
> compiler. i then downloaded jdk1.2.2 then followed its installation
> instruction (the instruction only requires that i uncompress the tar
> file to /usr/local then
> place /usr/local/jdk1.2.2/bin to $PATH) but when i run
> java i get the error
>
> /usr/local/jdk1.2.2/bin/java: /bin/realpath: No such file or directory
> /usr/local/jdk1.2.2/bin/java: /bin/realpath: No such file or directory
> java was not found in /bin/i386/green_threads/java

If you are good in understanding Script files, just take a look at
/usr/local/jdk1.2.2/bin/java
which is a script.
There one can see...


APPHOME=`dirname "$PRG"`/..
JREHOME=$APPHOME/jre

unset jre
if [ -f "${JREHOME}/lib/${proc}/libjava.so" ]; then
    jre="${JREHOME}"
fi
if [ -f "${APPHOME}/lib/${proc}/libjava.so" ]; then
    jre="${APPHOME}"
fi
if [ "x${jre}" = "x" ]; then
    echo "Error: can't find libjava.so."
    exit 1
fi

# Get the canonicalized absolute pathnames
jre="`$jre/bin/realpath $jre`"
APPHOME="`${jre}/bin/realpath $APPHOME`"
JREHOME="`${jre}/bin/realpath $JREHOME`"
export APPHOME JREHOME

and much further down

prog="$APPHOME/bin/${proc}/${ttype}/${progname}"

# Run.
if [ -x "$prog" ]
then
    exec $DEBUG_PROG "$prog" "$@"
else
    echo >&2 "$progname was not found in ${prog}"
    exit 1
fi

So it seems that APPHOME doesn't manage to resolve to anything useful.
But I can't figure out how...

Niclas


-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs

Reply via email to