Skip Headers

# Using TopLink Mappings

Previous

Next

Starting with Oracle JDeveloper 10g, the standard JDeveloper installation includes an embedded TopLink editor. Refer to the JDeveloper documentation for complete information.

To use TopLink with JDeveloper 9.0.4 (and earlier), use the following procedure to add the TopLink JAR files to your JDeveloper projects:

1. Select a JDeveloper project in the System Navigator window.

2. Choose Project > Project Settings. The Project Settings window appears.

3. Choose Configurations > Development > Libraries. A list of predefined and user-defined libraries appears.

   List of Available Libraries

   Description of "List of Available Libraries"

4. Click New to create a new library that will contain the TopLink `.jar` files. The New Library dialog box appears.

5. Enter a name for the new library–for example, TopLink. Ensure that the default choice for Location remains as User Libraries.

   Creating a New Library Dialog Box

   Description of "Creating a New Library Dialog Box"

6. To edit the Class Path and add the TopLink `.jar` files, click Edit.

   Add the following to the beginning of your Class Path:

       <ORACLE_HOME>\toplink\jlib\toplink.jar
       <ORACLE_HOME>\toplink\jlib\antlr.jar
       <ORACLE_HOME>\lib\xmlparserv2.jar
       <ORACLE_HOME>\lib\xml.jar

7. Click OK. On the Project Settings window click OK.

Using an Existing User-Defined TopLink Library

After a user library is created, it can be referenced again by any other project. Revisit the Libraries window of the Project Settings, and add the TopLink Library to any project with which you want to use TopLink.