Libvirt java from Windows

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

 



I am writing a java based client that would be executed from windows that will use libvirt.

1.       Got libvirt-java ( http://libvirt.org/sources/java/libvirt-java-0.4.7.tar.gz) and build a jar out it (ant with no params)

2.       Then, according to http://libvirt.org/windows.html, built a dll using the “MSYS build script”

3.       Got 2 files libvirt-0.dll and libqemu-0.dll

When I run the sample example(from Eclipse) from http://libvirt.org/java.html I get the following error:

 

Exception in thread "main" java.lang.UnsatisfiedLinkError: Unable to load library 'virt': %1 is not a valid Win32 application.

 

      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 Main.main(Main.java:26)

 

 

Also tried instead of step 2 cross compile in Fedora – same error message when I use new dll’s.

 

Does anybody have any idea where do I start fixing the issue??

 

--

Thank you,

Sergey Sudakovich

 

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]