File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes applications Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "applications" Watch "applications" New topic


Divyajot Ahluwalia
Ranch Hand

Joined: Nov 03, 2000
Posts: 46
how can we pack up a jar application so that it can be downloaded on the net and then installed on the clients machine even if he does not have JDK loaded???
Frank Carver

Joined: Jan 07, 1999
Posts: 6920
If you need to install a complete Java runtime as well as your application you have three basic choices:
1. Provide a collection of files (in a zip or tar, for example) including the JRE installer and your application, together with manual instructions ob how to install the JRE if not already present.
2. As 1, but build your own "install" program which performs the steps in the manual installation instructions automatically.
3. Use a third-party installer such as InstallAnywhere from Zero G software which can manage Java Runtime installation as well as your application.
Of these choices, number one should only be used if your users really know what they are doing; number two can work if installation is really simple, but you will need to keep maintaining the installation program as well as your aplication; number three can cost extra money, but is a very powerful and useful solution.

Read about me at ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
I agree. Here's the link:
subject: applications
It's not a secret anymore!