Posts in category java

New library for java developers

Are you developing your software in Java? Don't like JNI or JNA? The user jstrom just released a native wrapper for Java that talks to telldusd directly, without using the c-code.

From his post:

I've just implemented a pure java library for talking to telldusd. It is available at The README describes what it can and cannot do.

The background of implementing it was that I don't really like the idea of having native-libraries (which the current binding is, a wrapper around the native C lib), if I can get away with writing it in pure code. Since the only thing it does is talking over the network in a non-speed-sensitive way, I cannot really see any reason to NOT write it in pure code. The only thing would be maintenance overhead, but the wrapper would still need updates if the librarie gets more functions etc.

The only quirk right now is that telldusd uses UNIX sockets... Would there be any chance of changing this/complementing with TCP sockets in the future? As java doesn't do UNIX sockets natively (not portable), I have to rely on socat for 'bridging' the sockets (more on that in github README). Not the perfect solution but..

Any input is welcome, (but please read the README first;))!


Please note that this library is not supported by Telldus.