2

I have seen large application like joget workflow and alfresco which is actually a Webapps(Mysql, Tomcat, etc) which bundled and installed like desktop application.

I want to know how to create like those ? i mean how to bundle and create the installer.

esthrim
  • 1,790
  • 8
  • 28
  • 42

1 Answers1

1

It is not an installer like the traditional exe file under windows. What java uses for deploying applications are two types of files. WAR and EAR files.

  1. EAR (Enterprise ARchive) is a file format used by Java EE for packaging one or more modules into a single archive so that the deployment of the various modules onto an application server happens simultaneously and coherently. It also contains XML files called deployment descriptors which describe how to deploy the modules. (source) You can use Ant or Maven to build EAR files.
  2. WAR file (or Web application ARchive) is a JAR file used to distribute a collection of JavaServer Pages, Java Servlets, Java classes, XML files, tag libraries, static Web pages (HTML and related files) and other resources that together constitute a Web application. (source)

These types of files can be easily deployed to Java EE compliant application containers easily usually using the servers administration console or even by using hot deployment.

MaVRoSCy
  • 17,747
  • 15
  • 82
  • 125
  • can i also include mysql in the EAR file ? does the EAR file can be installed and uninstalled ? – esthrim Jun 18 '13 at 08:40
  • no, you can use an EAR file to deploy JEE modules. You cannot include other software like exe files. – MaVRoSCy Jun 18 '13 at 08:44
  • What you might be talking about is xamp (http://www.apachefriends.org/en/xampp-windows.html) to do this kind of job – MaVRoSCy Jun 18 '13 at 08:46
  • after search and search, i have found the solution in the stack overflow, this is what i meant http://stackoverflow.com/questions/856772/create-installer – esthrim Jun 18 '13 at 08:51
  • The accepted answer does not answer the question at all. If I understand correctly, the questioner wants to know, how to package the application, including the application server and the database into an installer. XAMPP is an installer for apache, mysql, php. It has nothing to do with java or tomcat or any webcontainer. – Adamsan Aug 19 '15 at 10:32