Using Libvirt Java Bindings on Windows 7 64bit

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi All,

Has anybody had any managed to use the libvirt java bindings on Windows 7 64bit (or similar configuration)?

I am using Java 6.

When I try to use the Test.class delivered with the bindings it always fails with the following error:

C:\Users\fwilson\Desktop\libvirt-java-0.4.7>java "-Djna.library.path=C:/Program
Files (x86)/Libvirt/lib/" -classpath .;target/classes;jars/* Test
Exception in thread "main" java.lang.UnsatisfiedLinkError: Unable to load librar
y 'virt': The specified module could not be found.

        at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:169)
        at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:242)
        at com.sun.jna.Library$Handler.<init>(Library.java:140)
        at com.sun.jna.Native.loadLibrary(Native.java:368)
        at com.sun.jna.Native.loadLibrary(Native.java:353)
        at org.libvirt.jna.Libvirt.<clinit>(Unknown Source)
        at org.libvirt.Connect.<clinit>(Unknown Source)
        at Test.main(Test.java:17)

I installed libvirt using the experimental package:

http://libvirt.org/windows.html

Is this a 32bit build? Does that mean I should use a 32bit JVM? 

In any case the above test program fails whether I use a 32 or 64 bit JVM.

I tried pointing jna.library.path to the libvirt bin directory instead of the lib directory but that also failed.

Thanks for any help you can offer,

Frank
_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users

[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux