Re: [Libguestfs] How to run the java demo code contained inlibguestfs package ???
[Please keep replies on the list] On Mon, May 23, 2011 at 04:44:48PM +0800, 毛宏 wrote:
Thanks, I am using libguestfs-1.10.3, the stable release. But I can't find the libguestfs_jni.so.1 or the jar file from the package, where can I get one ?
Are you compiling from source? In the standard build, libtool puts the libguestfs_jni.so* files in "java/.libs" so you would use: java -Djava.library.path=.libs t/GuestFS005Load (See java/run-java/tests) The jar file should be built in the java/ directory. However you don't need it when running the tests because the JVM can find the separate *.class files it needs from the current directory. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top
Thanks, I am using libguestfs-1.10.3, the stable release. But I can't find the libguestfs_jni.so.1 or the jar file from the package, where can I get one ? Are you compiling from source? In the standard build, libtool puts the libguestfs_jni.so* files in "java/.libs" so you would use: java -Djava.library.path=.libs t/GuestFS005Load (See java/run-java/tests) The jar file should be built in the java/ directory. However you don't need it when running the tests because the JVM can find the separate *.class files it needs from the current directory. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many
Yes, I downloaded libguestfs-1.10.3.tar.gz from http://libguestfs.org/download/1.10-stable/, but I can't find libguestfs_jni.so.* files in the package, do it need to compile the c source to manually build a libguestfs_jni.so.1 or the jar file ? Thanks! 2011-05-23 毛宏 发件人: Richard W.M. Jones 发送时间: 2011-05-23 17:12:59 收件人: 毛宏; libguestfs 抄送: 主题: Re: Re: [Libguestfs] How to run the java demo code containedinlibguestfs package ??? [Please keep replies on the list] On Mon, May 23, 2011 at 04:44:48PM +0800, 毛宏 wrote: powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top
On Mon, May 23, 2011 at 05:59:02PM +0800, 毛宏 wrote:
Yes, I downloaded libguestfs-1.10.3.tar.gz from http://libguestfs.org/download/1.10-stable/, but I can't find libguestfs_jni.so.* files in the package, do it need to compile the c source to manually build a libguestfs_jni.so.1 or the jar file ?
Yes, you definitely need to compile the program, otherwise nothing is going to work. If what you're looking for is a binary (pre-built) package, then these are available for several Linux distros including Fedora, RHEL (and derivatives), Debian and Ubuntu. See: http://libguestfs.org/FAQ.html#binaries IIRC the Debian/Ubuntu ones don't have the Java bindings built, but they should be reasonably easy to build. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top
Yes, I downloaded libguestfs-1.10.3.tar.gz from http://libguestfs.org/download/1.10-stable/, but I can't find libguestfs_jni.so.* files in the package, do it need to compile the c source to manually build a libguestfs_jni.so.1 or the jar file ? Yes, you definitely need to compile the program, otherwise nothing is going to work. If what you're looking for is a binary (pre-built) package, then these are available for several Linux distros including Fedora, RHEL (and derivatives), Debian and Ubuntu. See: http://libguestfs.org/FAQ.html#binaries IIRC the Debian/Ubuntu ones don't have the Java bindings built, but
Thanks, do you have any guides or manuals about building the java bindings? :-) 2011-05-23 毛宏 发件人: Richard W.M. Jones 发送时间: 2011-05-23 18:05:33 收件人: 毛宏 抄送: libguestfs 主题: Re: Re: Re: [Libguestfs] How to run the java demo codecontainedinlibguestfs package ??? On Mon, May 23, 2011 at 05:59:02PM +0800, 毛宏 wrote: they should be reasonably easy to build. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top
On Mon, May 23, 2011 at 06:19:01PM +0800, 毛宏 wrote:
Thanks, do you have any guides or manuals about building the java bindings? :-)
Sure, type './configure && make'. There's more information about building libguestfs here: http://libguestfs.org/README.txt However for more specific instructions you will need to give me a clue as to what distro "XenServer" is / is similar to. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones New in Fedora 11: Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 70 libraries supprt'd http://fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw
On Mon, May 23, 2011 at 10:12:51AM +0100, Richard W.M. Jones wrote:
(See java/run-java/tests)
This should say: See java/run-java-tests Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top
participants (2)
-
Richard W.M. Jones -
毛宏