Re: web start
On Mar 22, 6:03 am, ivan danicic <i...@goaway.spam> wrote:
On closer inspection, I noticed a couple of things
about the paths. I suspect, (but am *not* absolutely
certain) that the paths will not be acting in the
way you seem to be expecting them to behave.
<jnlp codebase=file:///home/ivie/proggies/opengl/jogl/examples>
The codebase is an important aspect of any
JNLP file, *everything* else should be paths
relative to the codebase. Note the codebase
finally points to/ends at the directory
'examples'.
<href="example.jnlp">
So this file would be expected to be here..
file:///home/ivie/proggies/opengl/jogl/examples/example.jnlp
I guess that is where the example.jnlp is located,
so we are good so far, but..
<jar href="/home/ivie/proggies/opengl/jogl/example.jar" main="true"/>
This line actually is telling web start
to look for that jar as path relative to
the root of the *codebase*, rather than any
local file system (this is my understanding).
So I think it is expecting the jar archive to
be located here..
file:///home/ivie/proggies/opengl/jogl/examples/home/ivie/proggies/opengl/jogl/example.jar
...whereas that archive is really..
file:///home/ivie/proggies/opengl/jogl/example.jar
...here. Right?
In that case, I would recommend altering the
paths in one of either two ways..
1)
<jnlp
codebase="file:///home/ivie/proggies/opengl/jogl/"
href="examples/example.jnlp">
....
<jar
href="example.jar"
main="true" />
2)
<jnlp
codebase="file:///home/ivie/proggies/opengl/jogl/examples/"
href="example.jnlp">
<jar
href="../example.jar"
main="true" />
After making the other changes mentioned, try
changing the paths in one (or both) those ways
and see if that helps.
If we can get that sorted, I would like to
go into removing the file system based path.
Most web start projects are deployed from
the web, and testing off the local file
system can be done by overriding the
web based codebase (to use the the version
off the local file system) when you invoke
it in web start.
Andrew T.