[Libvir] Java bindings

Hello! A development version of the java bindings I've been working on are available at : http://tiger.3ginformatika.hu/java-libvirt.tgz I'd appreciate your feedback on it. Building: Have java/gcc set up correctly through alternatives ( I use jpackage sun java 1.5.0 on Fedora 7 x86_64) Fix the include path in jni/Makefile run build.sh You should have the .so and .jar files built, and see the output from the basic test program. Using: See the test in build.sh Note: It's meant to be a thin translation layer on top of libvirt. The object model is similar to the python one. All error handling is done exclusively through exceptions. No documentation yet, but It's pretty self-explanatory. The build system is very primitive, I just hacked together something to build it outside my eclipse devel environment. The bindings are pretty complete, but minimally tested. License is LGPL. Best regards István

On Wed, Sep 12, 2007 at 08:37:33PM +0200, Tóth István wrote:
Hello!
A development version of the java bindings I've been working on are available at :
Excellent, I'm just not able to look at it right now, I will try to review it over the week-end !
I'd appreciate your feedback on it.
Building: Have java/gcc set up correctly through alternatives ( I use jpackage sun java 1.5.0 on Fedora 7 x86_64)
Would you mind posting the list of RPMs you are using so I'm sure I can reproduce your testing when I'm back home ?
Fix the include path in jni/Makefile run build.sh You should have the .so and .jar files built, and see the output from the basic test program.
Using: See the test in build.sh
Note:
It's meant to be a thin translation layer on top of libvirt. The object model is similar to the python one. All error handling is done exclusively through exceptions. No documentation yet, but It's pretty self-explanatory. The build system is very primitive, I just hacked together something to build it outside my eclipse devel environment. The bindings are pretty complete, but minimally tested. License is LGPL.
Sounds very good, I will look when I'm back, thanks a lot ! Daniel -- Red Hat Virtualization group http://redhat.com/virtualization/ Daniel Veillard | virtualization library http://libvirt.org/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/

I think that any 1.5.0 or later java will do, but the specific packages I use are: java-1.5.0-sun-1.5.0.10-2jpp java-1.5.0-sun-devel-1.5.0.10-2jpp java-1.5.0-sun-src-1.5.0.10-2jpp java-1.5.0-sun-fonts-1.5.0.10-2jpp java-1.5.0-sun-alsa-1.5.0.10-2jpp java-1.5.0-sun-demo-1.5.0.10-2jpp These are built from the http://mirrors.dotsrc.org/jpackage/1.7/generic/non-free/SRPMS/java-1.5.0-sun... (well, actually from 1.5.10, but that's no longer available) package and the jdk-1.5.0 available from java.sun.com. However, you are better off just installing the sun java rpm from java.sun.com and the http://mirrors.dotsrc.org/jpackage/1.7/generic/non-free/SRPMS/java-1.5.0-sun... compat rpm. Takes about 1/3 the time. Everything else is stock FC7, including th libvirt libraries and includes: libvirt-devel-0.3.2-1.fc7 libvirt-0.3.2-1.fc7 libvirt-devel-0.3.2-1.fc7 libvirt-python-0.3.2-1.fc7 libvirt-0.3.2-1.fc7 regards István Daniel Veillard wrote:
On Wed, Sep 12, 2007 at 08:37:33PM +0200, Tóth István wrote:
Hello!
A development version of the java bindings I've been working on are available at :
Excellent, I'm just not able to look at it right now, I will try to review it over the week-end !
I'd appreciate your feedback on it.
Building: Have java/gcc set up correctly through alternatives ( I use jpackage sun java 1.5.0 on Fedora 7 x86_64)
Would you mind posting the list of RPMs you are using so I'm sure I can reproduce your testing when I'm back home ?
Fix the include path in jni/Makefile run build.sh You should have the .so and .jar files built, and see the output from the basic test program.
Using: See the test in build.sh
Note:
It's meant to be a thin translation layer on top of libvirt. The object model is similar to the python one. All error handling is done exclusively through exceptions. No documentation yet, but It's pretty self-explanatory. The build system is very primitive, I just hacked together something to build it outside my eclipse devel environment. The bindings are pretty complete, but minimally tested. License is LGPL.
Sounds very good, I will look when I'm back,
thanks a lot !
Daniel

Tóth István wrote:
Hello!
A development version of the java bindings I've been working on are available at :
http://tiger.3ginformatika.hu/java-libvirt.tgz
I'd appreciate your feedback on it.
Building: Have java/gcc set up correctly through alternatives ( I use jpackage sun java 1.5.0 on Fedora 7 x86_64)
I've got something called 'java-1.7.0-icedtea' (pulled in as a dependency for OpenOffice). Is that likely to work? Rich. -- Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/ Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 03798903

It should, its basically the open sourced SUN JVM. However, you'll probably need the java-1.7.0-icedtea-devel package, too for the javac compiler and the JNI includes. regards István Richard W.M. Jones wrote:
Tóth István wrote:
Hello!
A development version of the java bindings I've been working on are available at :
http://tiger.3ginformatika.hu/java-libvirt.tgz
I'd appreciate your feedback on it.
Building: Have java/gcc set up correctly through alternatives ( I use jpackage sun java 1.5.0 on Fedora 7 x86_64)
I've got something called 'java-1.7.0-icedtea' (pulled in as a dependency for OpenOffice). Is that likely to work?
Rich.

A new version is available at http://tiger.3ginformatika.hu/java-libvirt-0.1.tgz Changes: -Javadoc documentation -Some fields weren't marked public -Minor consistency fixes -No new functionality regards István Tóth István wrote:
Hello!
A development version of the java bindings I've been working on are available at :
http://tiger.3ginformatika.hu/java-libvirt.tgz
I'd appreciate your feedback on it.
Building: Have java/gcc set up correctly through alternatives ( I use jpackage sun java 1.5.0 on Fedora 7 x86_64) Fix the include path in jni/Makefile run build.sh You should have the .so and .jar files built, and see the output from the basic test program.
Using: See the test in build.sh
Note:
It's meant to be a thin translation layer on top of libvirt. The object model is similar to the python one. All error handling is done exclusively through exceptions. No documentation yet, but It's pretty self-explanatory. The build system is very primitive, I just hacked together something to build it outside my eclipse devel environment. The bindings are pretty complete, but minimally tested. License is LGPL.
Best regards
István
-- Libvir-list mailing list Libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

On Wed, Sep 19, 2007 at 08:18:11PM +0200, Tóth István wrote:
A new version is available at http://tiger.3ginformatika.hu/java-libvirt-0.1.tgz
Changes: -Javadoc documentation -Some fields weren't marked public -Minor consistency fixes -No new functionality
I have started looking at it, but despites your guidance I have not managed to set up the java stuff properly on my F-7 (I think I downloaded a java x86_64 1.6 from java.sun.com and since then everything I tried failed in some ways). Since we have a Java JDK coming with Fedora-8 I think the best is to target that environment, which would be just fine if I push libvirt updates later. I still need to get an F8 test3 installed around and then play with the IcedTea version, in the meantime I have started looking at the code, I'm not that familiar with Java, so it's harder to review for me :-) thanks ! Daniel -- Red Hat Virtualization group http://redhat.com/virtualization/ Daniel Veillard | virtualization library http://libvirt.org/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
participants (3)
-
Daniel Veillard
-
Richard W.M. Jones
-
Tóth István