How to package a java web application

2019-05-06 20:43发布

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.

1条回答
劫难
2楼-- · 2019-05-06 21:40

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.

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

查看更多
登录 后发表回答