I am trying to create an EAR file from the command prompt. I have used
jar -cvf myServletWAR.ear .
But my question is, how can I get this EAR
.jar file into an .ear
jar -cvf myApplication .ear myService.jar
.war file you can add that to the .ear file in the same way.
Reffer http://supportline.microfocus.com/Documentation/books/sx51/thdpoy10.htm