How to build an ArcGIS Web services project in Eclipse


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

Creating an ArcGIS Web services project

The following steps detail how to create an ArcGIS for Server for Java Web application project in Eclipse:  
  1. From the Eclipse main menu, select File>New>Project as shown in the following screen shot:



    The New Project wizard dialog box appears.
  2. Navigate to ESRI Templates>Server, select ArcGIS Web Services Project, then click Next. See the following screen shot:



    The New ArcGIS Web Service Project dialog box appears.
  3. Type appropriate project and package names in the Project Name and Package Name text boxes, respectively, select the Map Viewer Application template, then click Next. See the following screen shot:



    The Web Service Selection Page appears.
  4. Enter the uniform resource locator (URL) to your root level services directory (for example, http://<server name>:<port>/arcgis/services), then press Enter on your keyboard. This is an important step as pressing the Enter key pings the server URL that you provided and retrieves all the available map services. 
  5. Select the Map Service you want to use from the second drop-down box, keep the default values for Image Format and Image Resolution, select the Use Query Capability check box, then click Next. See the following screen shot:



    The Java Settings page appears.
  6. This page allows you to configure your Java settings. Since you are creating a Java Project that contains source code and related files for building a Java program, the wizard has an associated Java builder that can incrementally compile Java source files as they are changed. The Libraries tab shows that the ArcGIS Web Services Library has been added with the new ArcGIS Java Web Services toolkit. Click Finish to build the project. See the following screen shot:

     
  7. The workbench now shows your newly created ArcGIS Web services project in the Java perspective. See the following screen shot:

  8. You can now run your application by right-clicking the MapViewer.java source file in your project and selecting Run As>Java Application. See the following screen shot:

     

    Your Map Viewer application opens and the Web Service Catalog URL is populated appropriately. You can now select an appropriate Web service from the Map Server Web Service drop-down box. See the following screen shot:







Development licensing Deployment licensing
Server Server