In libguestfs 1.21.3 you can now use the libguestfs event API from Java (or JRuby). For example to display progress bars, capture log messages, or do full libvirt authentication.
This effectively completes the Java bindings for libguestfs — as far as I’m aware you can now do anything from Java that you could do from C.
Congrats.
Nit picky, but would look nice if naming convention was more Java friendly.
e.g. GuestFS#setEventCallback instead of GuestFS#set_event_callback
Right .. although it is consistent with other libguestfs language bindings, and we think that consistency is more important.
The class names are camel-cased however.
Hi Rich, I just want some help in usage of libguest library in java. I have a project which am developing a java program that I want to use your Library (libguestfs) which I want it to open a disk image with a .dd extension. I tried to run InspectVM with appropriate parameters however I get the error as below
Exception in thread “main” java.lang.UnsatisfiedLinkError: no guestfs_jni in java.library.path
I have tried to search through the internet for a help and I found your response on
https://www.redhat.com/archives/libguestfs/2012-September/msg00057.html
I tried to put all the files on [libguestfs.jar, InspectVM.java, libguestfs_jni.so.1, libguestfs_jni.so.1.39.6] but when I run with java -Djava.library.path=/usr/local/lib InspectVM, I get the error could not load main class InspectVM. Please Help me with steps that I can follow to accomplish my project.