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

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.


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.

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