johvargas / sfdc-wsc

Automatically exported from code.google.com/p/sfdc-wsc
0 stars 0 forks source link

Client code does not compile. #59

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Generate Jar file from WSDL.
2.Put all jars with client code.
3.Compile client code.

What is the expected output? What do you see instead?
successful compilation of client code. but I am getting compilation issues.

SalesForceConnect.java:1: package com.sforce.soap.partner does not exist
   import com.sforce.soap.partner.*;
   ^
SalesForceConnect.java:2: package com.sforce.soap.partner.sobject does not exist

   import com.sforce.soap.partner.sobject.*;
   ^
SalesForceConnect.java:3: package com.sforce.ws does not exist
   import com.sforce.ws.*;
   ^
SalesForceConnect.java:8: cannot find symbol
symbol  : class ConnectorConfig
location: class SalesForceConnect
              ConnectorConfig config = new ConnectorConfig();
              ^
SalesForceConnect.java:8: cannot find symbol
symbol  : class ConnectorConfig
location: class SalesForceConnect
              ConnectorConfig config = new ConnectorConfig();
                                           ^
SalesForceConnect.java:12: cannot find symbol
symbol  : class PartnerConnection
location: class SalesForceConnect
              PartnerConnection connection = Connector.newConnection(config);
              ^
SalesForceConnect.java:12: cannot find symbol
symbol  : variable Connector
location: class SalesForceConnect
              PartnerConnection connection = Connector.newConnection(config);
                                             ^
SalesForceConnect.java:13: cannot find symbol
symbol  : class SObject
location: class SalesForceConnect
              SObject account = new SObject();
              ^
SalesForceConnect.java:13: cannot find symbol
symbol  : class SObject
location: class SalesForceConnect
              SObject account = new SObject();
                                    ^
SalesForceConnect.java:16: cannot find symbol
symbol  : class SObject
location: class SalesForceConnect
              connection.create(new SObject[]{account});
                                    ^

What version of the product are you using? On what operating system?
WSC-19.jar,JDK 1.6

Please provide any additional information below.

Original issue reported on code.google.com by AHinid...@mitrai.com on 17 Aug 2012 at 5:34

GoogleCodeExporter commented 8 years ago
I have the same problem.  I am using jdk 1.7 though with wsc22-jdk1.7

Any help is very appreciated.

Thanks!

Original comment by mgom...@catasyshealth.com on 20 Aug 2012 at 1:42

GoogleCodeExporter commented 8 years ago
I was able to do it by adding the jars to the command:

javac -cp wsc-22-jdk-1.7.jar;partner.jar BulkExample.java

hope this helps

Original comment by mgom...@catasyshealth.com on 20 Aug 2012 at 4:16