How to create a installer using Java that combine tomcat, mysql and war file and come out a final exe?
解决方案
You could use any installer, really. I personally have used InnoSetup, which is quite simple, but can still perform almost any task at installation time.
In your case, you probably want to place the Tomcat files somewhere, webapp included. Customize some configuration files and run the MySQL installer in silent mode. All of which is perfectly possible with InnoSetup.
If you need more flexibility, you can look at NSIS, another very simple but very powerful installer app.