File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Executing EAR, JAR etc." Watch "Executing EAR, JAR etc." New topic

Executing EAR, JAR etc.

K Syal

Joined: Oct 28, 2005
Posts: 4

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.

Henry Wong

Joined: Sep 28, 2004
Posts: 20526

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.


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
I agree. Here's the link:
subject: Executing EAR, JAR etc.
It's not a secret anymore!