InfoCenter Home >
6: Administer applications >
6.6: Tools and resources quick reference >
6.6.0: About user assistance >
6.6.0.8: Expanding .ear files

6.6.0.8: Expanding .ear files

The EARExpander expands Ear files into the format desired by the application server runtime, as described in the application installation instructions. EARExpander can also collapse the expanded format back to a normal Ear (.jar or .zip) format.

Invoking the tool

The tool is located in the following directory:

product_installation_root/bin/EARExpander.bat

To view syntax, open a command line and invoke the tool without arguments. Here is a typical result. The line breaks have been changed for better formatting in this documentation.

C:\seaa0122.02\bin>EARExpander.bat IBM WebSphere Application Server,
Release 4.0 J2EE
J2EE Application Expansion Tool, Version 1.0
Copyright IBM Corp., 1997-2001
Required Argument Missing:ear
Usage: java com.ibm.websphere.install.commands.EARExpander
-ear -expandDir -operation [expansionFlags]

ExpansionFlags indicate whether you want every JAR file expanded, or just the contained WAR files within the EAR file. The default is all.

Expanding files

The following example command expands the file my.ear into the product_installation_root/bin/myEAR directory:

EARExpander -ear my.ear -expandDir product_installation_root/bin/myEAR
-operation expand
Collapsing files

Using the collapse -operation reverses the format to normal.

EARExpander -ear my.ear -expandDir product_installation_root/bin/myEAR
-operation collapse

Type each of the above commands on a single line, despite their appearance in this documentation.

Go to previous article: Launching Java application clients in the J2EE application client container Go to next article: Application Client Resource Configuration Tool for configuring client resources

 

 
Go to previous article: Launching Java application clients in the J2EE application client container Go to next article: Application Client Resource Configuration Tool for configuring client resources