Posted on 24/12/2006
Filed Under (Programming, Rants) by simone

I don’t usually waste my time on java, but today I was in the right mood and tried to write a very simple network daemon, just to learn how hard it was. After some quick google I found that java can’t daemonize itself (it has no access to relevant native system calls) and therefore the Apache guys developed a nice component called org.apache.commons.daemon. I though Apache guys are smart, after all they developed the Apache web server, Subversion and more interesting stuff, so they have to know very well how a network daemon works. So I happily started with the test app, SimpleDaemon, bundled in the commons tar file, just to prove it works.

Unfortunately at the 1st attempt I got:

pioppo@roentgen ~/sandbox/daemon $ jsvc -verbose SimpleDaemon.class SimpleDaemon
24/12/2006 00:32:53 32525 jsvc error: Cannot execute JSVC executor process

Gosh, what is this?  Read the rest of this entry »