uCosminexus Application Server, Web Service Development Guide

[Contents][Glossary][Index][Back][Next]

12.3.5 Creating an EAR file

You use the jar command to create an EAR file that includes the files created so far.

The following is an example of creating an EAR file:

> cd c:\temp\jaxrs\works\tutorial\server\
> jar cvf tutorial.war .\WEB-INF
> jar cvf tutorial.ear .\jaxrs_sample.war .\META-INF\application.xml

When the jar command ends successfully, tutorial.ear is created in the c:\temp\jaxrs\works\tutorial\server\ directory.

For details on the jar command, see the JDK documentation.