Depending on the project type, the way how to reference other libraries varies. The Developer Studio comes with an SAP component model based Archive Pool. This pool contains all JAR files of SAP NetWeaver. The Developer Studio provides tools for the SAP component model to set the necessary references. When you create a new standard project, for example a project for a servlet, the New Project wizard in the Developer Studio automatically appends the necessary libraries to the classpath of the project. In the following we collected the three major methods how to reference libraries from a standard project if you want to reference additional libraries.
1. Click on the project in the package explorer with the right mouse key
2. Choose the command Set Additional Libraries… from the context menu
3. Choose the libraries you need from the DC list
The selected libraries are added to your project.
You also find instruction how to reference the archive pool in guides for the different SAP components.
The Developer Studio has predefined libraries that can be used to develop for example JSF or other Web applications.
If you have to reference JAR files that are not part of the archive pool proceed as follows:
...
1. Click on the project in the package explorer with the right mouse key
2. Choose the command Build Path → Configure Build Path… from the context menu
3. Choose the Libraries tab
4. Choose the Add Library… button and choose the library you require.
If you have to reference JAR files that are not part of the archive pool proceed as follows:
...
1. Click on the project in the package explorer with the right mouse key
2. Choose the command Build Path → Configure Build Path… from the context menu
3. Choose the Libraries tab
4. Choose the Add External JARs button and browse to the file system to select the required JAR file
To make sure that the JAR file also gets deployed you should copy the JAR file into the lib folder of you project.