• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Forced download of everything

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How should I do it with Java Web Start if I want everything to be downloaded every time a user clicks on the JNLP link?

I'm in the development phase of a SWING project and need to show the app to other people quite often, and because the app changes a lot, I just don't want the client machine to use anything cached.

Thanks in advance!
 
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

This should be taken care of automatically each time you upload the new .jar file with your swing app. This will have a different timestamp to what the user has for that file, hence it should get downloaded again.

The way I have done it is to actually rename your app .jar file each time you provide a revision, incrementing a version number in the file name for example. Then make the necessary change in your .jnlp file.

Cheers, Jared.
 
Ming Hu
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Jared for your reponse. I appreciate it very much!

The version number does solve my problem. However if there are dozens of jars need to be deployed. Changing version numbers can be tedious. Is there a magic switch/setting in Java Web Start that says if you click on a link, everything would be downloaded? Otherwise, what's the difference between starting an app from a web browser and an integrated desktop short cut?

Thanks in advance!
 
Jared Cope
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Ming Hu:

Is there a magic switch/setting in Java Web Start that says if you click on a link, everything would be downloaded?


Not really that I am aware of. If it is easy to manage, you could get your testers/users to clear their webstart cache through the java webstart console on your wish. Then they would be forced to download everything again. Don't know how realistic that option is in your situation.

I guess the difference you are wondering about is that you get to manage the application executables in one place on your server, instead of organising installations each persons machine. It's almost a zero administration idea where you make updates to the files on a server computer and everyone gets those updates next time they start the application.

I guess its the right model for some people, maybe not for others. Each to their own I suppose ...

Cheers, Jared.
 
reply
    Bookmark Topic Watch Topic
  • New Topic