如何在单个安装程序中为Java EE Web应用程序创建安装程序?

问题描述:

是否有办法创建包含整个Java EE Web应用程序的安装程序,最终用户只需执行单个安装程序而无需安装整个生产环境?

Is there a way to create an installer that contains a whole Java EE Web app, and where the final user only has to execute a single installer without the need to install a whole production environment?

我正在尝试的是保存JDK + Tomcat的安装,如果你有更好的解决方案,请提供它。

What I'm trying to do is to save them the installation of JDK + Tomcat, if you have a better solution, please provide it.

最简单的方法是使用您需要的所有文件(Tomcat和JDK)创建压缩文件。解压缩文件后,可以运行命令来启动Tomcat或您需要的内容。有必要考虑到Tomcat和JDK的路径与原始环境中的相同

The more simplest way would be to create a compressed file with all files that you need (Tomcat and JDK). Upon unzipping the file, this could run a command to start Tomcat or what you require. It will be necessary to consider that the paths to the Tomcat and to the JDK to be the same as in the original environment.

我看到 Winrar 可以生成可执行文件cans在提取结束时运行命令。 (你有没有在安装新程序时看到这个?首先解压缩,然后安装。)这至少在Windows中。其他库或程序可能会产生类似Winrar的东西。

I saw that Winrar can generate executable file and cans run a command at the end of extraction. (Have you seen this when you install a new program? First unzipping, then install. ) This at least in Windows. Other libraries or programs might generate something like Winrar.