Show TOC Start of Content Area

Procedure documentation Declaring Explicit References to Libraries  Locate the document in its SAP Library structure

Use

You need to define the additional libraries used explicitly in your projects in order to compile them and enable them to be deployed on the J2EE Engine. In EJB and Web projects, you define the additional libraries that are used so you can compile the projects. In Enterprise projects, you define the libraries that are used in the application-j2ee-engine.xml so you can deploy the application on the J2EE Engine.

Procedure

Adding Additional Libraries to a Web or EJB Project

...

       1.      Select the EJB or Web project in the J2EE Explorer (for ordinary projects) or J2EE DC Explorer (for DC projects).

       2.      Open the context menu and choose Add/Remove Additional Library.

The J2EE libraries/interfaces/service dialog appears. It allows you to select two types of libraries:

¡        Library Projects – The library projects existing in the current workspace.

¡        Installed Libraries – The default libraries expected to be available on the J2EE Engine.

       3.      Select the relevant library or libraries and confirm by choosing OK.

The SAP NetWeaver Developer Studio displays a dialog that reminds you to describe the library that was added in the application-j2ee-engine.xml of the corresponding Enterprise project (see the following steps).

Describing the Additional Libraries in an Enterprise Project

       4.      Select the relevant Enterprise project in the J2EE Explorer or J2EE DC Explorer.

       5.      Double-click application-j2ee-engine.xml.

The multipage editor opens in the right pane.

       6.      In the General tab, choose the entry References.

       7.      Choose the Add button.

       8.      Then choose the button Select library/interface/service to add the reference.

The J2EE libraries/interfaces/service dialog appears, as in step 2.

       9.      Select the relevant library, as in step 3.

Result

When you add the additional libraries to the EJB or Web project, you are ready to compile and build the project. When you add the libraries to the Enterprise project, you are ready to deploy the application on the J2EE Engine.

End of Content Area