Contents
Gen2J can be downloaded from www.gen2j.org
Recommended minimum system requirements
Software required to use Gen2J
Unpack the distribution file in a suitable directory. This will create a new directory Gen2j below the directory where the distribution is unpacked.
Copy the ant.properties file in the etc directory under your Gen2J installation directory to your home directory or another suitable location. Edit the properties in it to set the correct locations of each package on your system, including Gen2J itself.
Set GEN2J_PROPS to the full pathname of the top-level ant.properties file which you edited above. For example, if you placed ant.properties in the directory C:\home\fred, you would set GEN2J_PROPS to C:\home\fred\ant.properties.
The instructions in Running Gen2J assume that the Apache Ant ant command is on the system command path.
You may wish to try running Gen2J on one of the supplied samples if you do not yet have a UML model to use as input.
Basic steps to creating an application with Gen2J
Save or export the model in XMI format into project_dir. It is easiest to name the file after the project directory eg project_dir.xml
If your exported XMI file refers to a DTD in the DOCTYPE instruction, ensure that the DTD file is present in the correct location. With the MagicDraw XMI export, the file uml.dtd supplied with the MagicDraw installation must be copied to the same directory as the XMI file.