Re: Auto Updating an App



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.
.



Relevant Pages

  • Re: socket & JVM
    ... every request launch another JVM for handle the print ... > and create a pdf of the the spool data: for some reason if i create ... you are not launching another JVM when you create a new ... then update your Linux kernel and basic ...
    (comp.lang.java.programmer)
  • Re: Windows shutdown is not clean?
    ... I'm guessing if I can make the JVM call this function always on ... launch this application, ... far - the app need network access, obviously, and local disk access. ...
    (comp.lang.java.help)
  • Re: Available memory and limit on thread creation
    ... >that I am unaware of affecting the number of threads a JVM can launch. ... One limit is the size of the stack for each thread. ...
    (comp.lang.java.programmer)
  • Re: Auto Updating an App
    ... IF you want to launch it quickly in ... the same JVM you just call its main method. ... Anyone know of a way of overriding System.exitso that if the sub-program calls it, control returns to your program? ... Oliver ...
    (comp.lang.java.help)