<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Dear all:<br><br>I encounter a problem when I running the libvirt java bindings test program. I download the libvirt-java-0.4.3.tar.gz. Then compiled successful, but the test program can't running.<br><br># ant build<br>Buildfile: build.xml<br><br>init:<br>     [copy] Copying 1 file to /home/dustin/libvirt-java-0.4.3<br><br>build:<br><br>BUILD SUCCESSFUL<br>Total time: 0 seconds<br><br># javac -classpath /home/dustin/libvirt-java-0.4.3/target/libvirt-0.4.3.jar test.java<br>Note: test.java uses or overrides a deprecated API.<br>Note: Recompile with -Xlint:deprecation for details.<br><br>(I think this will not affect the use of libvirt library. It¡®s just a warning.<br><br>javac -classpath /home/dustin/libvirt-java-0.4.3/target/libvirt-0.4.3.jar test.java -Xlint:deprecation<br>test.java:142: warning: [deprecation] networkLookupByUUID(int[]) in org.libvirt.Connect has been deprecated<br>            testN!
 etwork = conn.networkLookupByUUID(UUIDArray);<br>                              ^<br>1 warning<br><br>Maybe I am wrong?)<br><br># java -classpath .:/usr/share/java/jna.jar:/home/dustin/libvirt-java-0.4.3/target/libvirt-0.4.3.jar test<br>Exception in thread "main" java.lang.UnsatisfiedLinkError: jnidispatch (/com/sun/jna/linux-i386/libjnidispatch.so) not found in resource path<br>        at com.sun.jna.Native.loadNativeLibraryFromJar(Native.java:592)<br>        at com.sun.jna.Native.loadNativeLibrary(Native.java:574)<br>        at com.sun.jna.Native.<clinit>(Native.java:104)<br>        at org.libvirt.jna.Libvirt.<clinit>(Unknown Source)<br>        at!
  org.libvirt.Connect.<clinit>(Unknown Source)<br> &!
 nbsp;&nb
sp;     at test.main(test.java:43)<br><br>I test other test.java, the results are the same.<br>I don't know the libjnidispatch.so can't be find is caused by the libvirt-java or JNA library.<br>How can I resolve the problem? <br><br>My java environment as below:<br>libjna-java-3.1.0-1<br>sun-java6-jdk-6-15-1<br>junit-3.8.2-3<br><br>Thank you very much.<br><br><br>-Dustin<br>2010-5-24<br><br>                                       <br /><hr />Hotmail: Trusted email with Microsoft¡¯s powerful SPAM protection. <a href='https://signup.live.com/signup.aspx?id=60969' target='_new'>Sign up now.</a></body>
</html>