> We're using Linux Slackware 3.9 with kernel 2.0.37 and are trying to install JDK 
>1.2. We decompress it, execute "java" and get this error:
>
>              "Error: Can't find libjava.so."
>

I had that problem a while a go when my user profiles were brand new (or
rather inexistent). In particular the $PATH was not set correctly.

For example,
cd $MY_JDK_HOME [return]
cd bin [return]
java [return]

produced some "java: Command not found exception"
because "." was not in my PATH; and

cd $MY_JDK_HOME [return]
cd bin [return]
./java [return]    <---- mind the "./"

produced "Error: Can't find libjava.so."

Updating my path so that it contained both "." and "$MY_JDK_HOME/bin"
solved it.
The two are not needed, I guess. It mostly depends on what you like for
your personnal settings/security.

I also had to set the environment variable THREADS_FLAG to "green", but
that's another topic not related at all to the libjava.so problem (see
various READMEs and posting on green/native-threads).

Now, why my solution to the "libjava.so" problem involved $PATH and not
$LD_LIBRARY_PATH never troubled my sleep ... ;-)

Cheers,

Christophe.




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

Reply via email to