2011/3/15 kadir yüceer <kadiryuceer@xxxxxxxxx>: > > > 2011/3/15 Berend Dekens <berend@xxxxxxxxxxxxxxx> >> >> It looks to me like you don't have libvirt set up properly as the ".so" >> file is a library which should be available in a system default location. > > Well I downloaded libvirt-0.8.8.tar.gz and run ./configure; make; install > successfully. And I'm logged in as root(always). Is there something else > that I should do, except adding jna.jar and the jar file within > libvirt-java-0.4.7.tar.gz to the libraries section of my java project? I'm > trying to run the sample code test.java on http://libvirt.org/java.html. > Running just ./configure without any options should make it install under the /usr/local prefix. /usr/local/bin should be in PATH by default, that's why you can run virsh, but ld fails to find libvirt.so. Did you try to run ldconfig as root to update ld's cache? That might help. Matthias