cancel
Showing results for 
Search instead for 
Did you mean: 

Class path Error

0 Kudos
50

Hi Guys,

I was trying to write codes to check connector connectivity, 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

View Entire Topic
0 Kudos

Hi can you solve this error, if yes tell me how please

thanks

atte

Salvatore