Skip to main content
IBM  
Shop Support Downloads
IBM Home Products Consulting Industries News About IBM
IBM developerWorks : XML : Education - Tutorials
XML Schema Infoset Model, Part 1
ZIPPDF (letter)PDF (A4)e-mail
Main menuSection menuFeedbackPreviousNext
3. Setting up the development environment
  


Downloading and installing the EMF and XML Schema components page 2 of 3


  1. Java Runtime Environment V 1.4. Eclipse does not include a Java Runtime Environment (JRE), so you will need a 1.4-level Java runtime or Java Development Kit (JDK) installed on your machine in order to run Eclipse. I recommend using the IBM or the Sun JRE/JDK:
  2. Eclipse Base V3.0M8. After you read and understand the Eclipse Foundation Software User Agreement, then download the Eclipse base. For this tutorial, we are using the latest release, which is 3.0M8 at the time of writing, but almost any version will do. Download and unzip a copy of the Eclipse base V3.0M8. Throughout this document we will refer to %ECLIPSE_BASE%, which is the base directory in which you unzipped the Eclipse base V3.0M8.

  3. Eclipse Modeling Framework, V2.0.0, Build I200405060858. Next, download the Eclipse Modeling Framework component, which we will call EMF throughout this tutorial. For this tutorial, we are using version 2.0.0, Build I200405060858. You can download EMF from the Eclipse Modeling Framework (EMF) Web site.

    After you have downloaded EMF V2.0.0, you should unzip the three zip files into the %ECLIPSE_BASE%\eclipse directory. Make sure that the directories line up so that the EMF plug-ins go into the %ECLIPSE_BASE%\eclipse\plugins directory.

    As an alternative, you can keep these additional components separated from the base by unzipping the three zip files into a subdirectory and then using an Eclipse link file to point to where the additional plug-ins are. Remember that EMF and XML Schema components are just Eclipse plug-ins; they work the same way as any other plug-ins in Eclipse. To keep these other plug-ins separated from the base, you need to create a "links" directory directly under the %ECLIPSE_BASE%\eclipse directory. In the links directory, add a file that contains the following:

    • Filename: org.eclipse.emf.link
    • Contents: path=C:/Dev/eclipse/emf200

  4. XML Schema Infoset Model, V2.0.0, Build I200405060858. Next, download the XML Schema Infoset component, which we will call XML Schema model throughout this tutorial. For this tutorial, we are using version 2.0.0, Build I200405060858. You can download XML Schema model from the XML Schema Infoset Model (XSD) Web site.

    After you have downloaded the XML Schema plug-ins, you can do the same thing that you did with the EMF plug-ins. Either unzip them into the %ECLIPSE_BASE%\eclipse directory or point to them using an eclipse link file.

  5. Apache Xerces2-J or IBM XML4J.

    If you are using Eclipse 3.0M8 or earlier, you need not do anything else at this point.

    If you intend to use a version of Eclipse newer than 3.0.0 Milestone 8, you need to be aware that IBM XML4J 4.0.13 is no longer being bundled with Eclipse 3.0 after M8, so you will need to download it separately. Click here for instructions, download links & additional information.

Note: When using the EMF and XML Schema components, remember that the build date and build level for the XML Schema Runtime must match that of the EMF Runtime that you plan use. For example, you could use the XSD Runtime (xsd-SDK-I200405060858.zip) with the EMF Runtime (emf-sdo-SDK-I200405060858.zip), which is what is linked above.

Another way to ensure you have the same version of EMF and XSD is to download a combined EMF & XSD bundle (emf-sdo-xsd-SDK-I200405060858.zip) from either the EMF or the XSD site. For example, for EMF and XSD 2.0.0 Build I200405060858, you could get this file instead.


Main menuSection menuFeedbackPreviousNext
About IBM | Privacy | Legal | Contact