Thursday, March 7, 2013

Setting up JDK SE6(1.6) and Eclipse for SalesForce webservice development...



1: install jdk 1.6
Check to see which version of Java you have installed (ie 32 or 64 bit)  you may need to uninstall and reinstall the Java RTE (by installing the JDK): (Control Panel > Java (32/64 bit)
Download from here:

2: Next, download and install Eclipse Juno IDE for Java EE Dev (32 or 64 bit, depends on which RTE/JDK you have installed)

3:  Before you can compile and run Java code using “-classpath” you will need to add the path to your system path (this will resolve any java not recognized as an internal or external command errors from the command prompt):
Right click Computer : Advanced System Settings : Environment variables >  System Variables > Path :
Make sure you have the lib and bin paths (this will be dependent on how you have java installed/version etc.) added to this with a semi colon separating them ie:
Example:  C:\Program Files (x86)\Java\jdk1.6.0_43\lib;C:\Program Files (x86)\Java\jdk1.6.0_43\bin;

4:  After adding that to the Path value and clicking “OK”, you may want to add a new variable: CLASSPATH
This will again be the same thing that you just added to the Path variable. IE:
Example: C:\Program Files (x86)\Java\jdk1.6.0_43\lib;C:\Program Files (x86)\Java\jdk1.6.0_43\bin;

Make sure to click OK at each window so your changes take effect!!

4b:  You can test to see if this worked by opening a command prompt and typing, “java” (without the quotes), it should return a usage menu.

5:  You will probably also want to download SOAPUI as well.  You can get it here:
I went with the eclipse plug in.
You should be ready to go with Java development now (ie web services and such)

No comments:

Post a Comment