<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=big5" http-equiv=Content-Type>
<META content="MSHTML 5.00.2920.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>hi,</FONT></DIV>
<DIV><FONT face=Arial size=2>I met a problem when I use JNI.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>I wrote two shared
libraries (c/c++).</FONT></DIV>
<DIV><FONT face=Arial size=2>Then I used them in my c/c++
application.</FONT></DIV>
<DIV><FONT face=Arial size=2>Everything is Ok, my c/c++ application can use
these libraries.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>But when I use it in kaffe by JNI,</FONT></DIV>
<DIV><FONT face=Arial size=2>Only one library can load, another can never loaded
by System.load().</FONT></DIV>
<DIV><FONT face=Arial size=2>Error is:</FONT></DIV>
<DIV><FONT face=Arial size=2>"UnsatisfiedLinkError: file not
found."</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>I have checked the path, everything is
OK.</FONT></DIV>
<DIV><FONT face=Arial size=2>The difference between these two libraries is, the
latter do not link any library.</FONT></DIV>
<DIV><FONT face=Arial size=2>The link command is:</FONT></DIV>
<DIV><FONT face=Arial size=2>"ld -shared --whole-archive x.o y.o -o
libxy.so"</FONT></DIV>
<DIV><FONT face=Arial size=2>I do not think it is the reason why I can not load
it.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>But why, it is a bug of System.load()?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Thanks!</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Stock Wu</FONT></DIV>
<DIV> </DIV>
<DIV> </DIV></BODY></HTML>