This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes how  to open .ear file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "how  to open .ear file" Watch "how  to open .ear file" New topic
Author

how to open .ear file

subbareddy nallamala
Greenhorn

Joined: Mar 08, 2006
Posts: 4
i have .ear(enterprise archive file with me)
it has java code , how to i view that code
can any body pls tell
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 20078
    
  30

Just like JAR and WAR, EAR is basically a special type of ZIP file. You could use a program like Winzip, Tugzip, 7-Zip or even Windows XP's internal ZIP client.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14952
    
  26

Or you can use the JAR tool included with the Java SDK to unpack it:

jar xvf myearfile.ear


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: how to open .ear file
 
It's not a secret anymore!