[libvirt-users] Beware! Newbie is in town

kadir yüceer kadiryuceer at gmail.com
Tue Mar 15 07:45:04 UTC 2011


And this also happens when I try to call virsh in command line.

2011/3/14 kadir yüceer <kadiryuceer at gmail.com>

> Hello everyone,
> I'm working on Ubuntu 10.10, installed libvirt and created a project in
> Netbeans, I included jna.jar and libvirt-0.4.7.jar. And guess what, I get
> the exception below when I'm trying to run test.java which connects to
> test:///default.
>
> Exception in thread "main" java.lang.UnsatisfiedLinkError: Unable to load
> library 'virt': libvirt.so: cannot open shared object file: No such file or
> directory
>         at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:164)
>         at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:237)
>         at com.sun.jna.Library$Handler.<init>(Library.java:140)
>         at com.sun.jna.Native.loadLibrary(Native.java:374)
>         at com.sun.jna.Native.loadLibrary(Native.java:359)
>         at org.libvirt.jna.Libvirt.<clinit>(Unknown Source)
>         at org.libvirt.Connect.<clinit>(Unknown Source)
>         at novatest_v01.Main.main(Main.java:21)
>
> I'm sure this question has been asked dozens of times, sorry.
> But any answer/comment is appreciated.
>
> Thanks
> Kadir
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20110315/29792727/attachment.htm>


More information about the libvirt-users mailing list