+ Start a Discussion
SaintMichaelSaintMichael 

Unabale to locate ConnectorConfig

I'm trying to use ConnectorConfig to make Java based API calles, but the ConnectorConfig class is missing.

I have the wsc-20.jar in my path, but still no good.

 

The following imports cause errors in eclipse:

 

import com.sforce.ws.ConnectorConfig;
import com.sforce.ws.ConnectionException;

 

Any ideas?

Best Answer chosen by Admin (Salesforce Developers) 
SaintMichaelSaintMichael

Ok, it seems to work now. I re-installed the jar file and now eclipse is seeing it properly now.

Not sure what that was all about?

 

But I'm fine now!

All Answers

JA-DevJA-Dev

Which version of the JDK do you have? The pre-generated wsc-20.jar can only run on JDK 1.6, but you can build a new jar that can run on JDK 1.5. Here are the instructions:

http://code.google.com/p/sfdc-wsc/wiki/GettingStarted

SaintMichaelSaintMichael

I'm using 1.6 but still getting errors.

JA-DevJA-Dev

Ok. Just to be sure, have you generated either the enterprise or the partner jar file from the wsc-20.jar?

 

Also, post your source code if possible.

SaintMichaelSaintMichael

Ok, it seems to work now. I re-installed the jar file and now eclipse is seeing it properly now.

Not sure what that was all about?

 

But I'm fine now!

This was selected as the best answer