Article View: borland.public.jbuilder.java.language
Article #18672Re: Chickens, Eggs and Automatic updates.
From: Clint Brewer
Date: Thu, 14 May 1998 00:00
Date: Thu, 14 May 1998 00:00
44 lines
2219 bytes
2219 bytes
Nathan Kirkham wrote: > > We have designed a swish updating system that contacts our server and > tests the clients machines jars to see if they are the latest versions. > If they are not it downloads the latest versions. > The problem is that the application classpath includes these jars > (though we don't use them for the update bit). JRE keeps a lock on the > jars so we can't copy the new files on top. > > Has anyone got a clue how to do this without having another application > that just does the update. Running it instead of the normal application > would be confusing for our users. > > Thanks > > Nathan > > -- > > ------------------------------------------ > Nathan Kirkham - nathan@result2k.u-net.com > Java Programmer > Result 2000 Plc http://www.result.co.uk Hello Nathan, Hmmm...Well I'm not sure how you'd get access to those jar files directly, and since you don't want to have your user run another app, maybe the jre would let them go if when you find out that there are new jar files to download, it goes ahead and downloads them into an 'update' directory, putting out a message like,"There are new and improved jar files, but they won't be active until you restart the application," Then when the application exits, you can have it launch the other app, which would then wait an appropriate ammount of time before it copied the updated jar files from the 'update' directory to the directory they belong in. Now granted, that is anything but an elegant solution to this problem, but it was one of the first things that popped into my head <grin> Anyone else got any ideas? -Clint Brewer
Technical Details
Message-ID:
<355B8F8D.5791@borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<3559D303.FB3115E8@NOSPAM.result2k.u-net.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,e5e7f102a6814afa X-Google-Attributes: gidf74b3,public From: Clint Brewer <supportinfo@borland.com> Subject: Re: Chickens, Eggs and Automatic updates. Date: 1998/05/14 Message-ID: <355B8F8D.5791@borland.com> X-Deja-AN: 353362222 Content-Transfer-Encoding: 7bit References: <3559D303.FB3115E8@NOSPAM.result2k.u-net.com> Content-Type: text/plain; charset=us-ascii Organization: Borland International Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language