Как создать установщик веб-приложения Java (.exe), который включает Tomcat и MySQL?"

После дальнейшего тестирования выяснилось, что в моей cpanel не было включено nd_mysqli. Включение, которое решило проблему. Спасибо RiggsFolly за помощь

16
задан user3270575 3 April 2014 в 10:56
поделиться

4 ответа

Вы действительно можете использовать любой установщик. Я лично использовал InnoSetup , который довольно прост, но может выполнять практически любую задачу во время установки.

В вашем случае вы, вероятно, захотите где-нибудь разместить файлы Tomcat, включая webapp. Настройте некоторые файлы конфигурации и запустите установщик MySQL в автоматическом режиме. Все это вполне возможно с InnoSetup.

Если вам нужна большая гибкость, вы можете взглянуть на NSIS , еще одно очень простое, но очень мощное приложение-установщик.

20
ответ дан 30 November 2019 в 16:58
поделиться

The possible options have been largely covered in several questions already, especially:

...and other questions tagged java + installer

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 install4j (costs $); among other things, it can create .exe installers (details about my experiences with it). Or, for a simpler, free tool for producing Windows executables out of Java programs, see Launch4j.

Update of my install4j recommendation, based on this comment by OP:

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.

With install4j,

  • you can bundle Tomcat, MySQL and your webapp just fine
  • you can automatically start the services too from the installer (or leave it to users as you suggest)
  • if you want, the installer can even directly launch the browser and point it to your webapp :-)

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.

9
ответ дан 30 November 2019 в 16:58
поделиться

I would suggest, that you use Java for this, a installer.jar. As you would like to run tomcat anyway, theres no need to put in a exe file. We've done something similar, programming an jar installer with the help of the Ant API (Ant used programmatically).

1
ответ дан 30 November 2019 в 16:58
поделиться

Вы можете использовать BitRock InstallBuilder для него (стоит $). Примеры таких программ можно найти в установщиках приложений Alfresco, Liferay и т. Д., Которые включают Tomcat, MySQL и т. Д. По адресу BitNami

0
ответ дан 30 November 2019 в 16:58
поделиться
Другие вопросы по тегам:

Похожие вопросы: