Tuesday, December 31, 2013

Distribute java application to users

Create executable jar file for your application first. If you have multiple jars to distribute, you may consider to use One-JAR to wrap them into one, though for many installers this is not necessary. After you have done this, there are many options to distribute your application. Here list only a few of them.

You can use Java Web Start to distribute and launch your application, which automatically updates your application on the user's system whenever you make an edition. You can also use other application launchers such as listed below to produce an executable file for your users.

1. use Launch4j to distribute and launch your application.

2. use Inno Setup to distribute your application

3. use IzPack to distribute your application

You can now let your users download the executable through Internet or obtain a CD.

A. Do the following if you decide to let your users to download from Internet.

     1. Compress the executable and all other required files into a zip file.

     2. Create a link for download on your website:
          <a href="path/file.zip">Download</a>

B. If you would like to make a CD that automatically launches, do the following.

     1. Create a text file using the notepad and name it Autorun.inf. This is the file that Windows automatically looks for when a CD-Rom is placed into your system. This file should have the following content.
       
         [autorun]
         open=file.exe
         icon=file2.ico

     2. Burn the autorun CD and add the Autorun.inf file to the main directory of your CD. Make sure to check the Automatic option for disc autorun capable or bootable if there is one while burning.

--------------------------------------------------------------------------------------------------------------

                        
If you have ever asked yourself these questions, this is the book for you. What is the meaning of life? Why do people suffer? What is in control of my life? Why is life the way it is? How can I stop suffering and be happy? How can I have a successful life? How can I have a life I like to have? How can I be the person I like to be? How can I be wiser and smarter? How can I have good and harmonious relations with others? Why do people meditate to achieve enlightenment? What is the true meaning of spiritual practice? Why all beings are one? Read the book free here.


No comments:

Post a Comment