function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
MSchumacherMSchumacher 

Compiling the file samples.java

I was able to compile Samples.java but when I execute it using java com.salesforce.samples.Samples, I receive the following errors.

I selected option 1 to logon and entered the username and password.

Enter the number of the sample to run: 1
Enter user name: cio@weilerinc.com
Enter password: *******
Creating the binding to the web service...
- Unable to find required classes (javax.activation.DataHandler and javax.mail.i
nternet.MimeMultipart). Attachment support is disabled.
Exception in thread "main" java.lang.NoSuchFieldError: WRAPPED
        at com.sforce.soap.enterprise.SoapBindingStub.(SoapBindingStub.j
ava:28)
        at com.sforce.soap.enterprise.SforceServiceLocator.getSoap(SforceService
Locator.java:45)
        at com.sforce.soap.enterprise.SforceServiceLocator.getSoap(SforceService
Locator.java:40)
        at com.salesforce.samples.Samples.login(samples.java:128)
        at com.salesforce.samples.Samples.run(samples.java:1742)
        at com.salesforce.samples.Samples.main(samples.java:85)

 

My classpath is as follows.

set

CLASSPATH=.;d:\temp\salesforce\axis\lib\axis.jar;d:\temp\salesforce\axis\lib\axis-ant.jar;d:\temp\salesforce\axis\lib\commons-discovery.jar;d:\temp\salesforce\axis\lib\commons-logging.jar;d:\temp\salesforce\axis\lib\jaxrpc.jar;d:\temp\salesforce\axis\lib\log4j1.2.8.jar;d:\temp\salesforce\axis\lib\saaj.jar;d:\temp\salesforce\axis\lib\wsdl4j.jar;D:\Temp\Salesforce\bin

I would appreciate some assistance.

Thanks

Mike Schumacher