The default jar files that get added when you create a Project (Portal Component, Web Dynpro, Dictionary, EJB etc) can be seen by going to the Project Properties-> ‘Java Build Path’ -> ‘Add Variables’

 

 

 

 

 

 

Most of the SAP specific jars are in the eclipse plugins folder. Depending on the type of the project these jar files are automatically added to the classpath when you create a Project.

 

If you can not lookup a class name using the Java Class Finder it probably does not exist in the plugins subdirectory.

 

Example. To lookup IRoom (In package com.sap.ip.collaboration.room.api) I did a search using the Java class finder

 

 

This did not return the IRoom class.

 

The jar file that has this class is available in the Portal Server portalapps directory. To add the jars from the server path, login to the portal and Navigate to

 

System Administration – Support – Portal Runtime – ROOT – WEB-INF-portal ->

Click on download this folder link.

 

Note: If you have a local portal installation can copy the files from the file system ( In my case it is located at C:\usr\sap\F52\JC30\j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\portal\portalapps)

 

Download and extract the folder. In my case I extracted it to C:\tmp\jars\lib-all (Shown Below)

 

 

 

 

 

 

 

Search for ‘private’ in the folder you extracted to (C:\tmp\jars\lib-all in this case)

 

 

 

‘Select All’ the folders in the Search screen and Delete them. This is done so that we do not reference the private jar files in the Netweaver Developer Studio Projects.

 

 

 

 

 

 

 

 

 

 

Now Search for ‘jar’ in the folder you extracted to (In this case C:\tmp\jars\lib-all)

 

 

 

 

 

 

‘Select All’ and Copy these files to a separate directory (In my case it is copied to C:\tmp\jars\lib)

 

 

 

 

 

You can now add these jar files in your project by Choosing ‘Add External Jar’ option in the Java Build Path.

 

 

To Search the IRoom class we will use the Java Class Finder utility on the folder (In this case it is C:\tmp\jars\lib) containing all the jar files from the Portal.

 

 

 

The IRoom class was located in the coll.shared.roomobject_api.jar which we downloaded from the Portal directory!

Now you have access to all the public jars and classes available in the portal directory to use during Compile Time for your Netweaver Developer Studio Projects.