Creating the MDHT Runtime Library

This describes the steps for creating the java libraries from the MDHT models and packaging them up with the set of EMF and OCL run-time dependency libraries that are needed to provide a basic runtime library for using MDHT artifacts.

Context for the current task

  1. Open the MDHT Workspace containing the models for which the run-time environment is needed.
  2. Right-click on one of the projects and select "Export…" from the menu.
  3. Expand the "Plug-in Development" folder
  4. Select "Deployable plug-ins and fragments" and then click on "Next".
  5. Select the runtime projects that are to be exported as jar files
  6. Enter a directory for where to place the jar files on the "Destination" tab. Under the Options tab, check the option ‘Qualifier Replacement’ Click on "Finish" This will create a jar file for each of the libraries in the location you specified. The current naming of the jar files will be <roject-name>_ <version>.<timestamp<.jar</stepresult>

Once the libraries are generated for the MDHT models, you will need some additional eclipse libraries in order to use these generated libraries in stand-alone mode. These libraries can be found in the eclipse environment. If you are using the all-in-one download, then these will be in the eclipse\plugins folder.

  1. Package Eclipse Runtime
    • For Eclipse 3.4 Runtime Jars, the following is the list of libraries that are needed:
      • lpg.runtime.java_2.0.17.v201004271640.jar
      • org.eclipse.emf.common_2.6.0.v20100914-1218.jar
      • org.eclipse.emf.ecore_2.6.1.v20100914-1218.jar
      • org.eclipse.emf.ecore.xmi_2.5.0.v20100521-1846.jar
      • org.eclipse.ocl_3.0.1.R30x_v201008251030.jar
      • org.eclipse.ocl.ecore_3.0.1.R30x_v201008251030.jar