jQuery in Action, 3rd edition
The moose likes Beginning Java and the fly likes Distributing Application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Distributing Application" Watch "Distributing Application" New topic

Distributing Application

Rob Levo
Ranch Hand

Joined: Oct 01, 2000
Posts: 167
What is the correct procedure for distributing a Java app along with run time environment, etc. Assume user PCs have nothing regarding Java support.
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
There is no "correct" procedure.
There are tools available that will bundle the JRE along with your app code and associated files like properties and a bat file to kick off the application, and create an exe out of the whole mess. then you can put that on a Web page and the user can download the exe and start it, and it will install itself. the bat file to start the application should have the classpath setting stuff in it.

I have seen Installsheild used for this, but there are others out there.
On the other hand you could just jar up your app, and put out instructions on how to download the JRE and your app and let the user do it. Its cheaper, but more difficult for the end user.

"JavaRanch, where the deer and the Certified play" - David O'Meara
Rob Levo
Ranch Hand

Joined: Oct 01, 2000
Posts: 167
Thanks Cindy.
I agree. Here's the link: http://aspose.com/file-tools
subject: Distributing Application
It's not a secret anymore!