Hi,
I am pretty sure, if you remove your libhello.so library
completely from your directory, you are going to get exactly
the same message. It means that your loader cannot find your
library libhello.so, even if it is in the directory.
I don't think LD_LIBRARY_PATH matters. Verify that you
have . in your path variable and classpath as well.
You also can try the command
java -classpath .;$JAVA_HOME; HelloWorld
JAVA_HOME is the /bin directory where you java, javac,
and other Java executables are located.
Good luck,
Jacob
Vijo Cherian wrote:
>
> i did everything as mentioned...
> and at `java HelloWorld` , i got the following error
>
> vijol@darkstar] ~/jni$ java HelloWorld
> Exception in thread "main" java.lang.UnsatisfiedLinkError: no hello in
> java.library.path
> at java.lang.ClassLoader.loadLibrary(Compiled Code)
> at java.lang.Runtime.loadLibrary0(Compiled Code)
> at java.lang.System.loadLibrary(Compiled Code)
> at HelloWorld.<clinit>(HelloWorld.java:7)
>
> what can be done to get this working?
>
> i have libhello.so in the current directory and LD_LIBRARY_PATH points
> there, too.
>
> thanx in advance,
>
> /l / . . _
> l/ /l/l/(_) .
> /l
> (_l
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]