Skip to main content

Problem using relative codebase

3 replies [Last post]
gkbrown
Offline
Joined: 2007-02-22

Hi all,

I'm trying to use a relative codebase in my JNLP file:

Pivot "Kitchen Sink" Demo
Apache Pivot (Incubating)

Demonstrates a number of commonly used Pivot components.

--width=1024
--height=768
--center=true

I don't see anything obviously wrong with it, yet when I try to launch the application, I'm told that:

"The field href has an invalid value: lib/pivot-core-1.3-incubating.jar,lib/pivot-core-1.3-incubating.jar"

The lib directory does exist, as does the pivot-core-1.3-incubating.jar file.

I don't have a lot of experience with JNLP, so maybe I'm doing something wrong. Does anyone have any suggestions?

Thanks,
Greg Brown

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
gkbrown
Offline
Joined: 2007-02-22

So I have since learned. I would consider this a design flaw in the Web Start implementation.

kazssym
Offline
Joined: 2007-04-18

Maybe. But it is how most browsers interact with helper applications (do not tell where the downloaded file came from).

In order to fix Java Web Start, it must be rewritten as a browser plug-in (or ActiveX control for MSIE). It can make JWS less useful on browsers that do not support such mechanisms, though.

kazssym
Offline
Joined: 2007-04-18

The jnlp tag must have an absolute codebase. Java Web Start does not know where the JNLP file is downloaded from when it is started as it just reads from a local file downloaded by a browser. You must tell JWS, in your JNLP file, where it can download the rest.