HOW TO

Check out an ArcGIS 10.1 for Server license from an ArcGIS Engine application using Java ArcObjects

Last Published: April 25, 2020

Summary

ArcObjects can be used to check out an ArcGIS for Server license from an ArcGIS Engine application. Since ArcGIS for Server 10.1 is 64-bit only, the approach for checking out its license is slightly different than previous versions.

Procedure



  1. Make sure the JRE used in the project is the 64-bit version from:

    C:\Program Files\Java\<jre6>


    Verify the version of the JRE

    [O-Image]
  2. Make sure arcobjects.jar used in the project is the 64-bit version from the ArcGIS for Server installation path:

    C:\Program Files\ArcGIS\Server\framework\lib


    Verify the arcobjects.jar version

    [O-Image]
  3. Bind the application to the ArcGIS for Server product by calling the EngineInitializer.initializeServer method.

    Code:
    EngineInitializer.initializeServer(esriProductCode.esriProductCodeServerStandardEdition);

  4. Check out the ArcGIS for Server license by calling the AoInitialize.initialize method.

    Code:
    AoInitialize ao = new AoInitialize();
    int status = ao.initialize(esriLicenseProductCode.esriLicenseProductCodeArcServer);
    if (status == esriLicenseStatus.esriLicenseCheckedOut)
    {
    //Apply business logics here
    }

Article ID:000011707

Software:
  • ArcGIS Server

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Discover more on this topic