[libvirt] Remote access form windows - Java bindings
Gandhiraj Natarajan
gandhiraj_gk at yahoo.co.in
Mon Sep 13 03:06:28 UTC 2010
Hi BK
Yes, I am running on windows. Is there any difference between the jar files (linux and windows).
How can i compile the source for windows.
Thanks in advance
Regards,
Gandhiraj Natarajan
--- On Sat, 11/9/10, Bryan Kearney <bkearney at redhat.com> wrote:
From: Bryan Kearney <bkearney at redhat.com>
Subject: Re: [libvirt] Remote access form windows - Java bindings
To: "Gandhiraj Natarajan" <gandhiraj_gk at yahoo.co.in>
Cc: libvir-list at redhat.com
Date: Saturday, 11 September, 2010, 1:47 AM
Are you running on windows? This error would occur if the virt library
were not on the load path. You will need to compile libvirt on windows.
The information is here:
http://libvirt.org/windows.html
the libvirt-java code wraps the c API which is loaded into memory via JNA.
-- bk
On 09/08/2010 11:54 PM, Gandhiraj Natarajan wrote:
> Hi
>
> I am developing tool to collect information on XenServer which is on
> Opensuse 11. I am using libvirt-0.4.6.jar and and jna-3.2.4 jar files.
>
> I tried to connect from Remote system(Windows) to server, but could not
> get the connection object.
>
> Any configuration needs to be done for remote access ?
>
>
> conn = new Connect("xen+tcp://192.168.10.22/");
>
> it shows the exception
>
> Exception in thread "main" java.lang.UnsatisfiedLinkError: Unable to
> load library
> 'virt': The specified module could not be found.
>
> 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 LibvirtCon.main(LibvirtCon.java:29)
>
> Help me
>
> Regards
> Gandhiraj Natarajan
>
>
>
>
> --
> libvir-list mailing list
> libvir-list at redhat.com
> https://www.redhat.com/mailman/listinfo/libvir-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20100913/95cc24f7/attachment-0001.htm>
More information about the libvir-list
mailing list