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:
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