How to build an ArcGIS Web Services Project in Eclipse


The ArcGIS Server Plug-ins for Eclipse provides several templates and projects to help you quickly get started building applications and running samples. If you have not already installed the plug-ins, refer to the Installing ArcGIS Plug-ins document.

Creating an ArcGIS Web Services Project

The following steps detail how to create an ArcGIS Server for Java web application project in Eclipse:  
  1. Create an ArcGIS Web Services Project.  From the Eclipse main menu, select 'File>New Project'.
  1. Navigate the New Project wizard to ESRI Templates and select 'ArcGIS Web Project' from the list and click Next.
  1. In the 'New ArcGIS Web Service Project' dialog, choose an appropriate 'Project Name' and 'Package Name'.  You have the option between two templates, a Map Viewer or a Geocoding Application.  We will choose the Map Viewer Application and select 'Next'. 
  1. Enter the URL to your root level services directory, e.g. http://<server name>:<port>/arcgis/services, and click 'Enter' on your keyboard.  This is an important step as the 'Enter' key will ping the server URL you provided and retrieve all the available map services.  Select the Map Service you want to use from the second drop down box.  This dialog allows you to choose your 'Image Format' and 'Resolution'.  We will keep the default values.  Additionally, you can choose from some additional features for your application.  Select the 'Use Query Capability' check box and click Next to proceed. 
  1. The next dialog allows for you configure your Java Settings.  As this wizard is creating a Java Project that contains source code and related files for building a Java program. It has an associated Java builder that can incrementally compile Java source files as they are changed.  For inspection, you can preview the Libraries tab to see that the ArcGIS Web Services Library has been added with the new ArcGIS Java Web Services toolkit.  Click Finish to build the project. 
  1. The workbench will now show your newly created ArcGIS Web Services Project in the Java perspective.
  1. You can now run your application by right clicking the MapViewer.java source file in your project and selecting 'Run As>Java Application'.
  1. You Map Viewer application should open whereby your Web Service Catalog URL should be populated appropriately and you can select an appropriate Web Service form the 'Map Server Web Service' drop down box. 






Development licensing Deployment licensing
Server Server