> > JAVA_HOME=/usr/lib/j2se/1.4 > > Would there be a way of making this bit magic? i.e. following the > /usr/bin/java symlink?
This is dangerous - even if you jave j2sdk1.4 installed, /usr/bin/java might still point to kaffe, gij, etc. I'd stick with a hard-coded path, especially if it requires java2 stuff. b.