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
ashokashok 

I just downloaded the new JAVA API on 12/11, how do I compile it

I am used to the old SOAP api which has the following classpath:
CLASSPATH=.:$HOME/xalan/bin/xalan.jar:$HOME/axis/lib/wsdl4j.jar:$HOME/axis/lib/axis.jar:$HOME/axis/lib/commons-discovery.jar:
$HOME/axis/lib/commons-logging.jar:$HOME/axis/lib/jaxrpc.jar:$HOME/axis/lib/saaj.jar:$HOME/axis/lib/log4j-1.2.4.jar:$HOME/axi
s:$HOME/xerces/xercesImpl.jar:$HOME/xerces/xmlParserAPIs.jar:

What else should I add to the classpath to make the new api compile for me to run the samples.

I downloaded the 2.5 api on 12/11/2003.

Thanks

Ashok


 

DevAngelDevAngel

Hi ashok,

The only imports that I have in mine are:

$HOME/axis/lib/axis.jar
$HOME/axis/lib/commons-discovery.jar:
$HOME/axis/lib/commons-logging.jar:
$HOME/axis/lib/wsdl4j.jar:
$HOME/axis/lib/jaxrpc.jar:
$HOME/axis/lib/saaj.jar:

Must be some other problem.

Message Edited by DevAngel on 12-11-2003 03:37 PM

ashokashok

1. CLASSPATH=$HOME/axis/lib/axis.jar:$HOME/axis/lib/commons-discovery.jar:$HOME/axis/lib/commons-logging.jar:$HOME/axis/lib/wsdl4j.jar:$HOME/axis/lib/jaxrpc.jar:$HOME/axis/lib/saaj.jar:

2: export CLASSPATH

3. Copy All Source files to 1 directory. (Remember this version 101)
4. javac *.java -d build
5. cd build
6. java com/salesforce/samples/Samples
7. You should see the Sample Menu

Thanks to Dave


PS if you need to run this thru a proxy then:


java -Dhttp.proxyHost=http.xyz.net -Dhttp.proxyPort=80 -Dhttp.proxyUser=JohnDoe -http.proxyPassword=Bangalore com/salesforce/samples/Samples