Hi there :)

i read the archive, and i had the same problems with libjava.so
i had both jdk versions installed (jdk1.1.7 and jdk1.2) and because i want
to use jdk1.1.7 until jdk1.2 will run stable, i didn't changed my path
enviroment variable. and just for a test i tried to run javac from the bin
directory:
tele@titania:/usr/local/jdk/bin>./javac
Error: can't find libjava.so.

if u type:
/usr/local/jdk/bin/javac

it will work fine!

the reason why is the script .java_wrapper in the jkd1.2/bin directory,
it tries for itself to check where the libraries are located

APPHOME='dirname "$PRG"'
APPHOME='dirname "$APPHOME"'
export APPHOME
JREHOME=$APPHOME/jre


i thing the srcipt uses the variable dirname, and will be set if u call the
application. 
then the script do this:

# Where is 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
....

so if u call javac from
tele@titania:/usr/local/jdk/bin>./javac

i suggest the path apphome is set to "/" and the JREHOME to /jre
and i think nobody has installed the jdk into his root directory, and so the
libraries cannot be found.
if u set the PATH to /where/ihave/installed/jdk1.2/bin
everything will work fine, the dirname-variable will be set correct, except
u start javac with
tele@titania:/usr/local/jdk/bin>./javac, or u PATH is also set to ./
for searching first 


don't beat me, if it's not the dirname var, cause i'm not a script
programmer, fact is that the APPHOME path is set false in the described
cases

i hope there will be no problem anymore

cu
        Tele
 


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to