The ArcGIS Java WebServices (AgsJWS) libraries are included with the ArcGIS Java Web ADF. With version 9.3.1, the Web ADF libraries are located under ‘$ARCGISHOME/java/web/webcontrols/WEB-INF/lib’. The ESRI AgsJWS libaries include the following:
- arcgis_agsws_stubs.jar
- arcgis_ws_runtime.jar
The dependency libraries are in the same location on disk and include the following:
- activation.jar
- commons-codec-1.3.jar
- commons-httpclient-3.0.1.jar
- commons-logging-1.0.4.jar
- jaxb-api.jar
- jaxb-impl.jar
- jsr173_1.0_api.jar
You can create User Libraries in NetBeans and Eclipse to accelerate development with the AgsJWS API.
NetBeans v6.5.1
- From the tools menu, select Libraries to open the Library Manager.
- Click the ‘New Library…’ button to create a new Library and name it ‘AgsJWSv9.3.1′.
- Select a Library Type
- You should see your library added to the Library Type you selected in the previous step.
- With your new ‘AgsJWSv9.3.1′ library selected in the left hand Libraries pane, click the ‘Add JAR/Folder’ button.
- Navigate to the ‘$ARCGISHOME/java/web/webcontrols/WEB-INF/lib’ folder location.
- Select the ESRI AgsJWS libraries and dependency libraries described above and click ‘Add JAR/Folder’.
- Once you have all the libraries selected, click OK to close out of the dialog.
Now when you can add the library to an existing project by right clicking the project and selecting ‘Properties’. The Project Properties dialog opens where you can select Libraries from the list of Categories and click the ‘Add Library’ button to find the appropriate library to add.
Eclipse Ganymede (v3.4.x)
- From the Windows menu, select Preferences.
- Select Java > Build Path > User Libraries from the left hand pane.
- Click the ‘New’ button to create a new Library and name it ‘AgsJWSv9.3.1′.
- With your new library selected, click the ‘Add Jars’ button to open the Jar Selection dialog.
- Navigate to the ‘$ARCGISHOME/java/web/webcontrols/WEB-INF/lib’ folder location.
- Select the ESRI AgsJWS libraries and dependency libraries described above and click ‘Open’.
- You should now see all the libraries added with options to attach source and javadoc locations.
Now you can add the library to a new project or existing project by clicking the ‘Add Library’ in the New Project dialog and/or the Project Preferences dialog respectively. In Eclipse, your library is added to the ‘User Library’ category by default. Once you select User Library, you can add the appropriate library to your project.
For further reference please review the follow Help System topics:

Thanks for that list of JARs that are required for using ArcGIS Web services. That’s very helpful!