如何打包java Web应用程序 [英] How to package a java web application

查看:147
本文介绍了如何打包java Web应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们公司开发了基于Struts2 + Spring + Hibernate的Web应用程序。
我的老板要我做一个安装CD包含JRE,Tomcat,MySQL和我们的产品,以便客户端可以点击sth,如installMe.exe,并按照向导完成安装。
我曾经用战争部署Web应用程序。只要把它放在tomcat的webapps文件夹下,然后启动tomcat。
我应该选择哪个软件完成我老板的任务?
谢谢,家伙。

Our company has developed a web application based on Struts2 + Spring + Hibernate. My boss wants me to make a installation CD contains JRE, Tomcat, MySQL, and our product, so that the client can just click sth like installMe.exe and follow the wizard to complete the installation. I used to deploy web application with war. Just put it under tomcat webapps folder, and start tomcat. Which software should I choose to complete my boss's task? Thanks, guys.

推荐答案

您需要创建一个安装程序脚本,告诉安装程序在哪里放置文件。我使用了两个高级安装程序,它创建了一个MSI或 Nullsoft 是谁创建的winamp的人。很多开源公司都在使用它。我会推荐第一个,并获得许可证来做更复杂的事情。

You need to create an installer script and tell the installer where to put the files. I have used two, advanced installer which creates an MSI or Nullsoft which is from the guys who created winamp. A lot of open source companies are using it. I'd recommend the fist one, and getting a license to do the more complicated stuff.

使用高级安装程序自动处理Java的安装。甚至有一个很酷的java模板可以从它开始。

The installation of Java is handled automatically with advanced installer. There is even a cool java template you can start from.

这篇关于如何打包java Web应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆