Andrew said:
Interesting. As I was preparing the table of
results, I noted the two failures* were using
Java 1.6, and the ones that worked*, were
using 1.5.
That seems to be it.
Using original JNLP URL:
http://www.physci.org/jws/cache/6/jwscache.jnlp
Then
<path to jre1.5>\javaws <url>
works fine. But:
<path to jre1.6>\javaws <url>
shows the same misbehaviour.
Unfortunately, opening:
http://www.physci.org/jws/cache/6/jwscache5.jnlp
from my browser still doesn't work properly. First it prompts me to check that
it's OK to use an older JRE -- I said OK (I wouldn't normally). But the
problem still persists. I think it's a problem in javaws.exe itself since the
problem doesn't go away even though it is (one hopes) loading the JVM from the
1.5 installation. A bit of experimentation suggests that the 1.6 javaws.exe
uses deploy.jar from the 1.6 jre, even if the JNLP file asks for a 1.5 JVM.
Incidentally, javaws also uses the 1.6 cache directory even when running a 1.5
jre. If you execute:
<path to jre1.5>\javaws -viewer
then you can see that there's nothing in the 1.5 cache. But running the
<path to jre1.6>\javaws -viewer
shows the cached application.
-- chris
P.S. Just got a midly amusing message from 1.5 javaws:
Warning:
You have exceed the recommended amount of disk space for JNLP
Applications and Resources in your cache.
You are currently using 3959bytes
The recommended limit is: 167bytes
...
;-)
It seems that 1.5 and 1.6 store the cache settings in the same place, 1.5 must
disagree about the units. If 1.6 is configured for a maximum of 167 MB, then
1.5 interprets that as bytes. But if you set 1.5 to 1 MB, then 1.6 interprets
it as 1GB.
Another winner from Sun...