How to get started with templates


In this topic


Getting started with templates

Do the following steps to create a working application with ArcGIS Engine. For more information about developing ArcGIS Engine applications in Eclipse, see How to build an application using visual beans, which shows you how to build an application by dragging visual beans onto the Visual Editor and setting its properties.

Selecting a wizard

  1. From the Eclipse main menu, click File, New, and Project. A new project wizard appears.
  2. Click the ESRI Templates node, then click ArcObjects Project.
  3. Click Next. See the following screen shot:

     

Creating an ArcObjects project

After you click Next in the preceding screen shot, the Create an ArcGIS Engine Project options appear:
  1. Accept the default project name in the Project name field.
  2. Select the Basic Viewer radio button to choose an application template.
  3. Accept the default class name in the Class name field.
  4. Click Next. See the following screen shot:

        

Customizing basic viewer

After you click Next in the preceding screen shot, the Customize Basic Viewer options appear, which allows you to further customize the application:
  1. Select the Map radio button as the viewer.
  2. Select the Basic Tools, Navigation Tools, and Query Tools check boxes; the associated icons appear to the right.
  3. Click the open folder button and browse to a *.mxd file. 
  4. Select the Open in Visual Editor check box. Visual Editor is the graphical user interface (GUI) designer with drag and drop capabilities for building projects.
  5. Click Next. See the following screen shot:

      

Adding ArcGIS licenses

After you click Next in the preceding screen shot, the Add ArcGIS Licenses options appear. Do the following to specify the license your application should use:
  1. Select the ArcGIS Engine product license check box.
  2. Click Next. See the following screen shot:

Defining Java build settings

After you click Next in the preceding screen shot, the following Java Settings options appear:
  1. Select the build path for your project (the arcobjects.jar file is automatically included).
  2. Click Finish to create the project. See the following screen shot:

Opening the application

After you complete the previous steps, the ArcObjects application source opens in the Editor. You can now run the application:
  1. Right-click the BasicViewer.java class in the Package Explorer pane.
  2. Click Run As, Java Application. See the following screen shot:

  3. After you select Java Application in the preceding screen shot, the application appears with the map, TOC, and selected toolbars.



See Also:

How to build an application using visual beans




Development licensingDeployment licensing
Engine Developer KitArcGIS for Desktop Basic
ArcGIS for Desktop Standard
ArcGIS for Desktop Advanced
Engine