As provided in the Device Kit, example launch configurations for running validation tests support Equinox or a standard JRE from the Eclipse SDK workbench. To run a validation test on a target runtime environment the following prerequisites must be met, besides the general Device Kit and Service Activator Toolkit minimum requirements, like a Java 1.4 JVM and an OSGi/Minimum-1.1 Java Runtime Environment.
When running inside the Eclipse SDK workbench using one of the example launch configurations, the prerequisites are fulfilled by default. Both a JUnit 3.8.1 and a JUnit 4 plug-in are part of the Eclipse base platform, and a SAX 2.0 or later parser is part of the J2SE core APIs.
When running on a target Java Runtime Environment, the following applies:
| Standard Java runtime | OSGi runtime | |
|---|---|---|
| JUnit | Add junit.jar (Java 1.4 or later) or junit4.jar (Java 5) to the classpath. | Install a bundle that exports the packages in junit.jar or junit4.jar. When running on Equinox, it is also possible to install the org.junit or org.junit4 plug-in folder from the base Eclipse platform. |
| SAX | If not already part of the core APIs of the Java runtime, add a SAX parser implementation compatible with the JRE to the classpath. | If not already part of the core APIs of the Java runtime, add a SAX parser implementation compatible with the JRE to the classpath, or install a bundle exporting a SAXParserFactory as OSGi service. |
Copyright © 2007 IBM. All Rights Reserved.