Re: Download and Upgrade a Java Application

Thomas Leonard <[email protected]>
Newsgroups gmane.comp.file-systems.zero-install.devel
Message-ID <CAG4opy-xb-AwW86vZoPQt4BGvn91s8Ay2qR518JyBS-XZAFhvA@mail.gmail.com>
[ Sorry, I didn't see this earlier - it was marked as spam: "It has a
from address in yahoo.com but has failed yahoo.com's required tests
for authentication." according to gmail ]

On 26 March 2015 at 21:30, Condescu Lucian <[email protected]> wrote:
> Hello,
>
> I've recently heard about 0install and today I visited the documentation
> pages.The problem is that it don't understand exactly if I can download a
> java application( wich is represented by a list of jars) from a server,and
> run it.

You can, if there is a feed for it. Here's an example Java application
(that depends on some Java libraries distributed as jars and also on
some C libraries):

  http://www.serscis.eu/0install/serscis-access-modeller

There's also a service that automatically publishes feeds for anything
available through Java's Maven system:

  http://maven.0install.net/

> Also,I am interested how 0install will manage changes to this
> application.More exactly :
>
> User click a button and the jars are downloaded to the PC Client.
> If the application already exist on Client,and it's the same version. then
> the resources download will be skipped and application will launch
> instantly.

Yes.

> And another question would be : Can I specify the destionation directory
> where the resources would be downloaded, through commnad line ?

There are various environment variables that control this. e.g. if
$ZEROINSTALL_PORTABLE_BASE is set then everything is stored under that
directory. Check the man-page for more:

  http://linux.die.net/man/1/0install ("Environment Variables")


-- 
Dr Thomas Leonard        http://0install.net/
GPG: 9242 9807 C985 3C07 44A6  8B9A AE07 8280 59A5 3CC1
GPG: DA98 25AE CAD0 8975 7CDA  BD8E 0713 3F96 CA74 D8BA

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.