Java bindings for D-BUS (revisited)

David Simmons simmons at davidsimmons.com
Tue Oct 4 17:15:54 PDT 2005


Hi,

I've been investigating the availability of Java bindings for D-BUS.  It 
looks like there have been (or will be) three attempts at this:

1. Carlos Romero's (aka "kidcrash") JNI interface
	- no build support (no makefiles or automake stuff)
		- (although it was easy for me to whip up a
		   suitable Makefile quickly.)
	- low-level bindings exposed, no high-level bindings
	- this code can segfault in certain situations
		- (null message pointers and such)
	- one release in April
	- back in April, there was talk of integrating kidcrash's stuff 		 
into the D-BUS CVS, but it doesn't look like anything came of 		  that.
2. Alberto Galdo's (aka "argaldo") pure-Java interface
	- not 100% pure - UNIX-domain sockets must use native code
	- no releases yet
3. Java-GNOME project's proposed dbus bindings
	- was on the roadmap for java-gnome 2.12
	- from the looks of the CVS, this work hasn't been started.

 From the looks of it, if I want to use D-BUS in Java, the best route 
would be:
	1. Start with kidcrash's code
	2. Iron out the handling of exceptional conditions
	3. Add a high-level layer similar to the Python bindings

Comments?

David


More information about the dbus mailing list