Skip to main content

CD installation of JNLP extensions

7 replies [Last post]
pauldb
Offline
Joined: 2003-08-30

Hi,
I'm trying to create an installation of a web start application from CD. I can replicate the simple example shown in the documentation. Unfortunately, however, my application depends on libraries or extensions that are referenced as other jnlp files in the resources section.

I have tried installing the libraries separately using separate javaws import/codebase commands but either I cannot get them to install or else the application does not recognise that they're there.

Please could someone describe how I can best create the installer, so that both the libraries and the application can all be installed from CD.

Many thanks,
-Paul

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
pauldb
Offline
Joined: 2003-08-30

After a few days of trying various combinations of "javaws -import/codebase" and searching all available literature, I am forced to conclude that a clean CD installation of a java web start that includes libraries as jnlp extensions is NOT possible.

This is a great shame. Any major application is likely to include the use of libraries. And, it's highly likely that a CD will be required, at least as a backup installation mechanism.

My workaround is highly unsatisfactory: it is to have a second application that because the codebases have had to be altered in the jnlp files (because those in the libraries could not be overridden at the command line in a manner consistent enough to please javaws) will always have to be run offline. Therefore, anyone installing from CD will miss out on the fantastic update facility normally offered by Java Web Start.

If anyone knows something that I'm missing with regard to installing jnlp extensions to Web Start applications from CD, please let me know.

Many thanks,
-Paul

colebatchd
Offline
Joined: 2004-06-29

Hi Paul,

Not sure if what I'm about to suggest is clean enough for you - I'd consider it fairly hacky, although we do it for a couple of webstart apps we use.

We simply copy the installed files and shortcuts into the user's home area. Its worth noting that this approach only works when installing for the current user (we have done "All Users" installs, but there are many issues there). We simply copy (using the installer - inno) c:\Documents and Settings\[username]\Application Data\Sun\Java\Deployment\cache\javaws\http onto an installer CD. Obviously this means that you need to first "install" the app via webstart before building the installer, not ideal, but something we've been able to live with.

hth,
dim

pauldb
Offline
Joined: 2003-08-30

Hi dim,
Thanks for your reply. I can see that working but it shouldn't have to be done like that. It really ought to be part of the standard installatiuon mechanism. I'm surprised installing extensions wasn't even thought of.

Anyway, thanks again for your advice - it's very much appreciated.
Best wishes,
-Paul

colebatchd
Offline
Joined: 2004-06-29

Hi Paul,

I couldn't agree more. I really shouldn't have to be done like that.

There was a plugin we looked at that would turn a jnlp into an msi installer, although it didn't handle versioned libraries so we threw it out. I cant remember the reference to it sorry.

cheers
dim

pauldb
Offline
Joined: 2003-08-30

Yes, I'm tempted to submit an enhancement request although I think it's more of a bug.

It's a pity but it will be too late for Java 6 - and they made such a fuss about getting things right for the desktop.

I'm still surprised noone on the deployment team thought that it might be necessary.

Thank again for your interest.
Best wishes,
-Paul

pauldb
Offline
Joined: 2003-08-30

I've submitted a RFE.
I'll keep you posted on its progress.

Thank you everyone for your interest.
-Paul

pauldb
Offline
Joined: 2003-08-30