I have a working webstart deployment of an application. This post says I can omit the codebase parameter. The documentation says the codebase parameter is optional.
When I omit the codebase parameter or use
codebase=""
my web start application fails to start because it is looking for the executable .jar file in the directory where the .jnlp file is downloaded to.
I would like to omit the codebase parameter because this particular webstart application will be deployed onto several different servers and I don’t want to have to customize the .jnlp file for each server.
What is the correct story with the jnlp codebase parameter?
That post is incorrect. The only JNLP for which it is valid to leave out the document base, are those which are used to deploy an embedded applet. In that case, the code base will default to the same directory that contains the HTML.
Launch files for frames or free floating applets need a codebase.
codebase=""By the way, that is an attribute with empty value, not an omitted attribute/value pair. For the embedded applet mentioned above, you would not include that at all.