!--a11y-->
Adding JARs and References 
A library project can contain JAR files as well as references to existing J2EE engine components. You generally only include JARs in a project if these are new JAR files that are not yet contained in another engine component. You use references if a JAR is already available on the J2EE engine as a library, interface, or service.

Note that each JAR file should only exist once on the J2EE engine. This also applies if, for example, two different applications utilize helper functions of a JAR. In this case, you must ensure that these helper functions are not packed into the relevant EAR in both applications, but are instead stored in a separate library.
|
|
|
|
To add one or more JARs or references, proceed as follows:
...
1. Expand the project structure and double-click the node server/provider.xml.
2. Choose the Jars tab.
3. Choose the Jars node followed by Add.
4. Select one or more JARs from your workspace and confirm by choosing OK.
5. Choose the References tab.
6. Choose the References node followed by Add.
You can either create a new reference or select existing ones:
Create a new reference if the relevant library was not installed together with the engine, but was deployed on it at a later stage.
You should select an existing reference if the relevant library was already installed as part of the J2EE engine or if it is a new library project from your workspace.
Action |
Steps |
Create new reference |
... 1. Choose the Create new button. 2. Under Reference target, enter the name of the referenced engine component (library, service, or interface). 3. Under Reference target type, specify whether the engine component is a library, service, or interface. 4. Enter the name of the provider in the Provider name field. It is recommended that you derive this name from the Internet domain of the provider (for example, sap.com).
|
Select existing reference |
... 1. Choose the button Select library/interface/service. 2. In the list that appears, select the relevant reference and confirm by choosing OK.
|
