Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>The possible options have been largely covered in several questions already, especially:</p> <ul> <li><a href="https://stackoverflow.com/questions/80105/whats-the-best-way-to-distribute-java-applications">What’s the best way to distribute Java applications?</a></li> <li><a href="https://stackoverflow.com/questions/173392/what-is-the-best-installation-tool-for-java">What is the best installation tool for java?</a></li> <li><a href="https://stackoverflow.com/questions/759855/what-are-good-installanywhere-replacements-for-installing-a-java-ee-application">What are good InstallAnywhere replacements for installing a Java EE application?</a></li> </ul> <p>...and other questions <a href="https://stackoverflow.com/questions/tagged/java+installer">tagged java + installer</a></p> <p>Although admittedly some options mentioned in those questions cannot produce self-sufficient .exe installers. If a commercial tool is ok for you, I can personally recommend <a href="http://www.ej-technologies.com/products/install4j/overview.html" rel="nofollow noreferrer">install4j</a> (costs $); among other things, it can create .exe installers (<a href="https://stackoverflow.com/questions/759855/what-are-good-installanywhere-replacements-for-installing-a-java-ee-application/786307#786307">details about my experiences with it</a>). Or, for a simpler, free tool for producing Windows executables out of Java programs, see <a href="http://launch4j.sourceforge.net/" rel="nofollow noreferrer">Launch4j</a>.</p> <p><em>Update</em> of my install4j recommendation, based on this comment by OP:</p> <blockquote> <p>Yes, the exe installer need to install the tomcat, mysql, web application, and db script all in once. At the end, users only need to start the tomcat and mysql service. Go to browser can access the web application.</p> </blockquote> <p>With install4j,</p> <ul> <li>you can bundle Tomcat, MySQL and your webapp just fine </li> <li>you can automatically start the services too from the installer (or leave it to users as you suggest)</li> <li>if you want, the installer can even directly launch the browser and point it to your webapp :-)</li> </ul> <p>I have just done a similar thing with install4j (bundle application server, webapp, run database scripts, and many other things; without bundling the database however), so I'm relatively sure it can be done. I do not know if you can do this (easily) with the free tools such as Launch4j.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload