New in libguestfs 1.21.3: Java events

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.


Filed under Uncategorized

3 responses to “New in libguestfs 1.21.3: Java events

  1. Congrats.

    Nit picky, but would look nice if naming convention was more Java friendly.

    e.g. GuestFS#setEventCallback instead of GuestFS#set_event_callback

    • rich

      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.

  2. 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

    I tried to put all the files on [libguestfs.jar,,,] 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.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.