2 Set your preferences before you import the UDTT Java source:
▪ To work with complex projects, use the source folders as source containers instead of creating packages inside the project. To use source folders as source containers, create source folders as children of the project and create packages inside these source folders. To automate this, click Window > Preferences. Expand the Java node, and then select the New Project node. Select the Folders check box.
▪ To develop applications by using UDTT, add the framework functional units (the JAR files containing the classes) to the application classpath. You can use any approach to do this, but you must account for the class loader policies.
A recommended approach is to add an overall classpath variable named UDTT to point to the root directory of the UDTT installation. To do this, do the following steps:
▪ Click Window > Preferences.
▪ Expand the Java node and select Build Path.
▪ Expand the Build Path node and select Classpath Variables.
▪ Click New and enter UDTT in the Name field.
▪ In the Path field, enter the path in which UDTT is installed, and then click OK.
To add another classpath variable, repeat these steps. You might want to add a classpath variable named UDTT_EXTERNAL to point to the external dependencies. To enable the external classpath variable, all the required external JAR files must be in the directory to which this variable points. The overall classpath variables makes it easier for you to select the UDTT JAR files for your Java project.
Note Another approach is to define a classpath variable for each functional unit available in the product. Each classpath variable points to the concrete JAR associated with the functional unit (see the tables in Functional units, packages, and dependencies).
The remainder of this procedure and all the other procedures assume that you are using the recommended approach.
3 Create a Java project for your application.
▪ Select File > New > Project.
▪ In the left panel, select Java. In the right panel, select Java Project. Click Next.
▪ Enter the name of the project, and then click Finish.
4 Embed UDTT functional units and the required application resources inside the J2EE EAR file to deploy an application.
UDTT uses functional units to provide a coherent structure of JAR files for you to build an application. The JAR files in the functional units contain the required set of classes for an execution environment.
To make the functional units available to your project, either add the compiled JAR files to the project classpath or import the JAR files into the workspace. You might want to import the JAR files into the workspace if you want to embed the JAR files and resources into your application when it is self-contained and independently deployed.
For either option, you add or import only the JAR files and the corequisite functional units that are required to optimize the deployment and distribution of the application. For more information on JAR files and their corequisite functional units, see System requirements.
Result
After you have installed UDTT, you can develop solutions that are based on UDTT.