javaws with -import and -codebase

Hi,

On a Windows XP system with JRE5.0 I want to do an offline JWS installation from CD using:

javaws -import D:\hello.jnlp -codebase file://D\:/jws

and variations on the codebase url.

However the codebase specified in the jnlp (like http://www.xyz.com) isn't replaced with the codebase given on the command line and javaws gives 'Unable to import ...'

Hope someone has the answer...

[423 byte] By [summer2003a] at [2007-10-2 13:43:13]
# 1

Are you trying with the latest update release of javaws.

There is a bug in earlier updates displaying the wrong codebase in the error message.

In this case, it looks like the codebase given is invalid:

-codebase file://D\:/jws, should be file:/D:/jws or file:///D:/jws

need 1 or 3 backslashes in a URL, and don't escape the colon.

/Andy

dietz333a at 2007-7-13 11:38:22 > top of Java-index,Desktop,Deploying...
# 2

Andy,

Thanks for your reply

You're right.

Actually I tried that too but the reason it didn't work then was that the jnlp file was outside the jws directory!

So now it works, with:

javaws -codebase file:///jws -import jws/hello.jnlp

(also avoiding the use of D:, but that wasn't the problem)

summer2003a at 2007-7-13 11:38:22 > top of Java-index,Desktop,Deploying...