Archive for the ‘java’ Category

Jini configuration hell

Friday, May 3rd, 2002

Since its introduction, pundits have wondered why Jini has failed to catch on like other Java technologies. Having recently tried to take the plunge into JavaSpaces, I believe I can answer that question.

Put simply, Jini is too hard to configure. I consider myself fairly intelligent, and I have a lot of Java experience and a fair amount of Solaris experience. Nevertheless, it took me over a week of wasted evenings trying to run the Ray Tracer example included with the Jini distribution. Running this example requires no less than 6 processes to be running, 4 of which require commands spanning multiple lines to start.

You can see the fruits of my labor, a shell script that starts everything running. For everyday use, I’ve broken it into 5 different shell scripts:,,,, and one for the application (e.g., or

I haven’t even started writing my own programs, this is just to run the example. Folks, developers are going to be slow to adopt Jini until this get easier.

A tip for Google API experimenters

Friday, April 12th, 2002

Check out Jython and use the Java API docs. Not only is Python a nicer language, but you can leave out the “get” and “set”. Place googleapi.jar in your jre/lib/ext directory and try the following:

engine =
engine.key = '00000000000000000000000'
engine.queryString = 'google api'
answer = engine.doSearch()
for result in answer.resultElements:
    print result.URL

(Replace 000… with your key)

Much nicer.