convert war file to exe file

syafikah picture syafikah · Apr 8, 2011 · Viewed 12.1k times · Source

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

Answer

Harry Joy picture Harry Joy · Apr 13, 2011

First of all why you need to do such thing?

As stated on wiki :

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.

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.

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.