Re: Auto Updating an App
- From: Roedy Green <my_email_is_posted_on_my_website@xxxxxxxxxxxxxx>
- Date: Tue, 28 Feb 2006 12:43:39 GMT
On Tue, 28 Feb 2006 10:23:52 -0000, "Allan Bruce" <amb@xxxxxxx> wrote,
quoted or indirectly quoted someone who said :
If so, how do I launch another java program?You have at least two choices. IF you want to launch it quickly in
the same JVM you just call its main method. If you want to launch an
independent JVM you use exec. See http://mindprod.com/jgloss/exec.html
It will be
guaranteed to be in the same directory as the program a.jar.
For finding things you can put the location on the command line, in a
system property, in the registry via the Preferences class, or you can
use CWD relative addressing.
Also is there
an easy way to get a binary file from an http server, or do I have to do
that myself as I did with the C++ version?
Use JAWS to automatically deliver a jar for you. It it up to you to
write a class to unpack it when it arrives. Alternatively you could
use the FileTransfer.download method to get it direct from the server.
See http://mindprod.com/products1.html#FILETRANSFER
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
.
- Follow-Ups:
- Re: Auto Updating an App
- From: Oliver Wong
- Re: Auto Updating an App
- References:
- Auto Updating an App
- From: Allan Bruce
- Auto Updating an App
- Prev by Date: Re: Auto Updating an App
- Next by Date: No Solution? (Was: Once again problems with wildcards/generic methods)
- Previous by thread: Re: Auto Updating an App
- Next by thread: Re: Auto Updating an App
- Index(es):
Relevant Pages
|
|