Jump to: navigation, search

EMF/FAQ (Archived)

< EMF
Revision as of 15:33, 24 July 2007 by Codeslave.ca.ibm.com (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This page contains archived (old) FAQ entries which are no longer relevant to the current EMF version.

For the latest, see EMF FAQ.

I want to use EMF, SDO, or XSD 2.1.x in my standalone project, or include only a working subset of the code. What libraries (jar files) do I need in my CLASSPATH?

Eclipse Modeling Framework (EMF) provides the infrastructure to run the generated models and dynamic model based on existing ecore files. It also provides XMI/XML serialization and deserialization.

The following jars can be used in standalone mode. Jars are found under the plugins directory of your Eclipse installation - there will be a release number appended to the plugin name, e.g. org.eclipse.emf.common_2.1.0.

Add to the following jars to your CLASSPATH or copy them into your project. This includes, but is not limited to:

  • org.eclipse.emf.common/runtime/common.jar
  • org.eclipse.emf.common/runtime/common.resources.jar (needed at runtime, not at compile time)
  • org.eclipse.emf.ecore/runtime/ecore.jar
  • org.eclipse.emf.ecore/runtime/ecore.resources.jar (needed at runtime, not at compile time)
  • org.eclipse.emf.ecore.change/runtime/ecore.change.jar
  • org.eclipse.emf.ecore.xmi/runtime/ecore.xmi.jar (requires SAX parser - see note below)

Service Data Objects (SDO) is an API specification in the format of Java interfaces and the EMF implementation that requires the EMF jars above and the following jars to be used in standalone mode:

  • org.eclipse.emf.commonj.sdo/runtime/commonj.sdo.jar
  • org.eclipse.emf.ecore.sdo/runtime/ecore.sdo.jar

XML Schema Infoset Model (XSD) is a reference library for use with any code that manipulates XML schemas and requires the EMF jars above and the following jars to be used in standalone mode:

  • org.eclipse.xsd/runtime/xsd.jar
  • org.eclipse.xsd/runtime/xsd.resources.jar (needed at runtime, not at compile time)
  • org.eclipse.xsd.test/runtime/xsd.test.jar

NOTE: If using ecore.xmi or any of the XSD jars, you will require a SAX parser such as Xerces.

For more information on working outside Eclipse, see the question "How do I use EMF in standalone applications (such as an ordinary main)?".