Re: libvirt-java bindings

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

 



On Wed, Jul 02, 2008 at 01:04:28PM +0200, Dalibor Topic wrote:
> Daniel Veillard wrote:
> >On Tue, Jul 01, 2008 at 09:40:53PM +0200, Farkas Levente wrote:
> >  
> >>Daniel Veillard wrote:
> >>    
> >>> Hi,
> >>>
> >>>I have just started to release and package java bindings for libvirt.
> >>>I have made a request for review for Fedora on the new package:
> >>> https://bugzilla.redhat.com/show_bug.cgi?id=453119
> >>>
> >>>I found the exercise rather hard, JNI is of course on the edge of the 
> >>>Java
> >>>land, but it's hard to find good resources to look at for Java bindings
> >>>in Fedora, the gnome-java stuff seems very specific, and a lot of 
> >>>packages
> >>>basically rely on gcj for compilation of any JNI stuff.
> >>>      
> >>you may look into jna. gstreamer-java use it. it's much simpler, easier 
> >>then jni without the above problems.
> >>    
> >
> >  Well back in 97 we tried to avoid JNI in the Kaffe project, the 
> >alternative was more elegant, easier, faster. I think everybody outside
> >of java has hoped or tried to develop different bindings mechanism,
> >unfortunately none prevailed, at this point I will stick with JNI,
> I'll sing the praise for JNA, as it is VM-independent, so doesn't suffer 
> from the
> problem most other (usually vm-specific) JNI-replacements do.

  haha, well you're obviously in a good position to sing that song now :)

Looking at the example, yes this looks way nicer, but having that JNI code
now I'm not sure I want to rewrite the thing.
  One interesting thing in my case is that JNA is compatible up to 1.4
while our bindings are restricted to 1.5+ since they use enums (currently
this just mean I can't compile with gcj in the RHEL releases, but that's 
a point in JNA favour)

  cheers,

Daniel

-- 
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard      | virtualization library  http://libvirt.org/
veillard@xxxxxxxxxx  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine  http://rpmfind.net/

--
fedora-devel-java-list mailing list
fedora-devel-java-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-java-list

[Index of Archives]     [Red Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux