Subject: Re: sun-jre1.3
To: Scott Bartram <>
From: Hussain Ali <>
List: netbsd-users
Date: 08/13/2001 15:29:30
thanx for the info, but i still have an error :(

if i dont set a LD_LIBRARY_PATH,

* export JAVA_HOME=/usr/pkg/java

[hali@hali ~ 509]$ javac
javac: error in loading shared libraries: cannot open shared
object file: No such file or directory

now lets say i set the LD_LIBRARY_PATH

* export JAVA_HOME=/usr/pkg/java
* export JAVA_LIB=$JAVA_HOME/jre/lib/i386
* export LD_LIBRARY_PATH=.:$JAVA_LIB/:$JAVA_LIB/green_threads:$JAVA_LIB/classic

[hali@hali ~ 504]$ java
Error: could not find Java 2 Runtime Environment.

i still get the Runitme error from above if add

* CLASSPATH=/usr/pkg/java/jre/lib/rt.jar
strange right? 

now, lets say i try go into the $JAVA_HOME/jre/bin

[hali@hali /usr/pkg/java/jre/bin 507]$  javac
Error: could not find Java 2 Runtime Environment.

[hali@hali /usr/pkg/java/jre/bin 508]$ ./java 

[hali@hali /usr/pkg/java/jre/bin 509]$ /usr/pkg/java/jre/bin/java
(but javac  and so on dont work)

sorry for this length, but this is truly frustrating...

anyone know?

dazed and confused,