将war文件转换为exe文件 [英] convert war file to exe file

查看:490
本文介绍了将war文件转换为exe文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个.war格式的文件.
是否可以将其转换为.exe.jar文件?

I have a file in .war format.
Is it possible to convert it to an .exe or .jar file?

推荐答案

首先 为什么需要这样做?

First of all why you need to do such thing?

wiki 所述:

war文件是用于以下目的的JAR文件: 分发JavaServer的集合 页面,servlet,Java类,XML 文件,标签库和静态Web 的页面(HTML和相关文件) 一起构成一个Web应用程序.

A war file is a JAR file used to distribute a collection of JavaServer Pages, servlets, Java classes, XML files, tag libraries and static Web pages (HTML and related files) that together constitute a Web application.

war文件是可以在服务器上运行的应用程序.就像您说的那样,您只需要将war文件放入tomcat的webapps文件夹中即可.并启动tomcat服务器.完成.您的项目将成功运行.无需为此构建exe文件.

A war file is you application which is ready to run on server. As you said you are using tomcat you just need to put the war file in webapps folder of tomcat. And start the tomcat server. Its done. Your project will successfully run. No need to build exe [of war] for this.

如果您想为客户端提供一个看起来像设置的设置,并设置所有要运行的应用程序,则可以使用exe maker软件(例如 installJammer ),然后将您的exe制作为使其与tomcat一起包含在web应用程序中.制作tomcat启动文件的快捷方式.因此,现在,当用户单击快捷方式tomcat时,tomcat将启动,您的应用程序也将启动,并且用户可以在浏览器上对其进行访问.

If you wanna give client a setup that will look like set up and setups all things to run your app then you can use a exe maker software (like installJammer)and make your exe such that it includes tomcat with your war in webapps. Make shortcut to startup file of tomcat. So now when user clicks on shortcut tomcat will start and with it your application will also start and user can access it on browser.

这篇关于将war文件转换为exe文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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