File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Executing EAR, JAR etc. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Executing EAR, JAR etc." Watch "Executing EAR, JAR etc." New topic
Author

Executing EAR, JAR etc.

K Syal
Greenhorn

Joined: Oct 28, 2005
Posts: 4
Hi

I am new to J2EE technology and currently I am working on a project where client has sent his old code and some exe files etc in .ear and .jar jave file formats, some .ear files contain .war files also inside them. Now i want to work on these bundles of codes and files and lay novice about the commands needed to get started with them. I know how to deploy .jar files from the command prompt (drive:> java -jar xx.jar) is all i know. Can anyone be helpful taking me further along with other file formats as well ie .ear and .war files. I need to know how to execute or extract or make them work from the command prompt as well as other utilities if both are the cases those could be used. Plz can anyone help me out telling commands in here and giving some good related links. I couldnt land up to any worth while through google.

Regards
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18914
    
  40

As far as I know, I don't think that you can run a WAR or EAR from the command line. You need some sort of application server -- like Weblogic, JBoss, Websphere, etc.

Of course, I haven't kept up... There may be some really lightweight application server that can run services from the command line.

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Executing EAR, JAR etc.