## Working with the Hyades EMF Common Base Event v1.0.1 Sample

Introduction
This sample demonstrates creating and configuring Common Base Events. Users experience creating and configuring a Common Base Event using the Common Base Event XML file template Event Factory and logs the newly created Common Base Event to the console.
Contents
The contents of the sample include the Java source code, dependencies and configuration file necessary to create and configure a Common Base Event.
Requirements
JRE 1.4.0 or above is required to compile and execute this sample.
Assumptions

1. <workspace> represents the absolute path to the workbench's workspace.
2. The 'org.eclipse.hyades.logging.core.sample.HyadesEMFCommonBaseEventv101Sample.event.xml.file' environment variable is set to the sample's configuration template's (org.eclipse.hyades.logging.core.sample.HyadesEMFCommonBaseEventv101Sample.event.xml) absolute path and name. For example, <workspace>/HyadesEMFCommonBaseEventv101Sample/config/org.eclipse.hyades.logging.core.sample.HyadesEMFCommonBaseEventv101Sample.event.xml, where <workspace> is the absolute path to the workbench's workspace.

Dependencies
The JAR files that are listed in the table are required to execute this sample:

JAR file | Plug-in it is contained in | Reason for requirement
hlcore.jar | org.eclipse.hyades.logging.core | Common Base Event's Hyades Logging Core dependency
hlcbe101.jar | org.eclipse.hyades.logging.core | Common Base Event implementation
ecore.jar | org.eclipse.emf.ecore | Common Base Event's Eclipse Modeling Framework (EMF) dependency
common.jar | org.eclipse.emf.common | Common Base Event's Eclipse Modeling Framework (EMF) dependency

Execution Steps
To run this sample , follow these steps:

1. If the workbench's default JRE is not 1.4.0 or above, modify the newly created Java project (i.e. HyadesLoggingJava14Project) to compile and execute using JRE 1.4.0 or above (Project > Properties > Java Build Path > Libraries > JRE_LIB > Remove > Add Library... > JRE System Library > Next > Alternate JRE > Installed JREs... > Add... > JRE home directory > Browse... > [JRE 1.4.0 or above] > OK > OK > OK > Finish > OK).
2. Confirm that all compilation errors have been fixed.
3. Run the sample class from the Java Perspective (Run > Run... > Java Application > New... > Main class > Search... > org.eclipse.hyades.logging.core.sample.HyadesEMFCommonBaseEventv101Sample > OK > Arguments > VM arguments > '-Dorg.eclipse.hyades.logging.core.sample.HyadesEMFCommonBaseEventv101Sample.event.xml.file=<workspace>/HyadesEMFCommonBaseEventv101Sample/config/org.eclipse.hyades.logging.core.sample.HyadesEMFCommonBaseEventv101Sample.event.xml' > Run), where <workspace> represents the absolute path to the workbench's workspace.