tiewknvc9 wrote:
> With java web start, if I were to pack everything into a single jar and
> have someone download it.
Which is not a clever idea, particular if you start to repack 3rd party
jars (and it might even violate the 3rd party licenses). Packing
everything in one big jar is typically only attempted by people who
don't want to use web start and don't get their classpath settings
right in the main jar.
But that's not the issue here.
> Then update a single class file within that
> jar, is the whole jar downloaded onto their computer for the next
> update?
Webstart has a barely documented only-send-the-differences feature:
jardiff files. Your best bet is to use Sun's JnlpDownloadServlet on the
server to generate and provide them, since
http://java.sun.com/j2se/1.5.0/docs/...vletguide.html
is the only official mentioning of jardiff in the JDK documentations I
am aware of.
Interestingly Sun delivers the source code of a stand-alone tool for
creating and applying jardiffs with each JDK (as part of the mentioned
servlet source code), but doesn't lose a word about it. Go into your JDK
installation directory and then:
../sample/jnlp/servlet/ for a prebuild version:
java -jar jardiff.jar
JarDiff: [-nonminimal (for backward compatibility with 1.0.1/1.0]
[-creatediff | -applydiff] [-output file] old.jar new.jar
And
../sample/jnlp/servlet/src/classes/jnlp/sample/jardiff/
for the sourcecode.
The tool can not only create the diffs, but also apply (patch) an
existing jar.
/Thomas
--
The comp.lang.java.gui FAQ:
http://gd.tuwien.ac.at/faqs/faqs-hie...lang.java.gui/
ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/...g/java/gui/faq