How can I specify a relative codebase in the JNLP descriptor?
Use Sun’s jnlp-servlet that is part of Sun’s Web Start developer’s pack. It allows you to set jnlp.codebase to $$codebase and jnlp.href to $$name. Sun’s jnlp-servlet will replace $$codebase and $$name with the correct values at run-time. Sun’s jnlp-servlet also supports different versions of the same file and jar diffs (aka incremental updates). A more light-weight approach is to rewrite your JNLP as a JSP. This allows you to put the JNLP file on any JSP-enabled host you want. Note that both codebase and href in the example below are pulled from the request and are not hard-coded.