To get the traditional Java commands:
$ 0alias java http://repo.roscidus.com/java/openjdk-6-jre
$ 0alias javac http://repo.roscidus.com/java/openjdk-6-jdk
The other tools are available by passing the tool name as a third argument, e.g.
$ 0alias javadoc http://repo.roscidus.com/java/openjdk-6-jdk javadoc
When making packages that depend on Java, either add the JRE's bin directory to $PATH, or use this pattern:
"${MYPROG_JRE_BIN}java" ...
If Zero Install selects a native version of Java (part of your distribution) then MYPROG_JRE_BIN will expand to the empty string and the command will simply invoke "java". Otherwise, it will run java from the selected Zero Install implementation.