Downloads

The latest versions of the libvirt Java bindings can be downloaded from:

A maven repository is located at https://download.libvirt.org/maven2/ which you can use to include this in your maven projects.

GIT source repository

The Java bindings code source is now maintained in a git repository available on gitlab.com:

git clone https://gitlab.com/libvirt/libvirt-java.git

Building

The code is built using ant, and assumes that you have the jna jar installed. Once you have downloaded the code you can build the code with

% cd libvirt-java
% ant build

Maven

Up until version 0.4.7 the Java bindings were available from the central maven repository.

If you want to use 0.4.8 or higher, please add the following repository to your pom.xml

<repositories>
  <repository>
    <id>libvirt-org</id>
    <url>https://download.libvirt.org/maven2</url>
  </repository>
</repositories>