[Libguestfs] How to run the java demo code containedinlibguestfs package ???

毛宏 maohong1987 at gmail.com
Mon May 23 09:59:02 UTC 2011


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libguestfs/attachments/20110523/da9177df/attachment.htm>


More information about the Libguestfs mailing list