Building an EAR File at the Command Line
You can build an EAR file using the command-line interface.
- Procedure
- Navigate to BE_HOME/studio/bin/ and open a command prompt.
- Execute a command with the following format (all on one line) at a command prompt:
studio-tools -core buildEar [-h] [-x] [-lc] [-jc] [-v] [-noBuild] [-showWarnings] [-o <outputArchiveFile>] -p <projectDir> -pl<project lib path><path separator><project lib path> -cp<extended classpath> -cd<temporary code gen/compilation directory>
For example:
studio-tools -core buildEar -o c:\FD.ear -p D:\Workspace\FraudDetection
See Options for Building an EAR File
Note: When building an EAR file in memory for a large project, the JVM may run out ofPermGenSpace
and/or heap space. In such cases, edit the BE_HOME/studio/eclipse/studio.ini and BE_HOME/studio/bin/studio-tools.tra file to set appropriate values for the JVM settings. By default the heap size is set to-XX:MaxPermSize=256m
. - When testing a project, run it at the command line using the following format:
BE_HOME/be-engine [-h] [--propFile startup property file] [--propVar varName=value][-p custom property file] [-n engine name] [-d] [-c CDD file] [-u processing unit ID] [EAR file]
Subtopics