Skip to Content
0
Nov 07, 2005 at 12:27 PM

Class path Error urgent Plz

23 Views

Hi Guys,

I was trying to write an WD application to check connector connectivity in EP, I have included these jar files in class path "com.sap.portal.ivs.connectorservice_api.jar" and "GenericConnector.jar".

The codes are like

IConnection connection = null;

IConnectorService cs = (IConnectorService) PortalRuntime.getRuntimeResources().getService(IConnectorService.KEY);

IConnectorGatewayService cgs = cs.getIConnectorGatewayService();

connection = cgs.getconnection(Alias,request)

but as soon as I write this last line getconnection() I get error which is "Compilation unit indirectly references the missing type com.sap.portal.services.api.connectorgateway.IConnectorGatewayService(typically some required class file is referencing a type outside the class path)"

and this given below error comes when I build the project.

"The project was not built since its classpath is incomplete. Cannot find the class file for com.sap.portal.services.api.connectorgateway.IConnectorGatewayService. Fix the classpath then try rebuilding this project."

can any one please tell me how can I fix this problem.

Thanks in advance

Best Regards

Yasir Noman

Message was edited by: Yasir Noman