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

相关信息
Article ID: 40771
Software:
ArcGIS for Server 10.1
ArcGIS Engine for Windows 10.1
ArcObjects SDK for Java Windows 10.1
Platforms:
Windows Windows 7

问题描述
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.
已邀请:

易智瑞技术支持

赞同来自:

解决方案
  1. Make sure the JRE used in the project is the 64-bit version from: C:\Program Files\Java\<jre6>
  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
    [*]Bind the application to the ArcGIS for Server product by calling the EngineInitializer.initializeServer method. EngineInitializer.initializeServer(esriProductCode.esriProductCodeServerStandardEdition);
  3. Check out the ArcGIS for Server license by calling the AoInitialize.initialize method. AoInitialize ao = new AoInitialize();int status = ao.initialize(esriLicenseProductCode.esriLicenseProductCodeArcServer);if (status == esriLicenseStatus.esriLicenseCheckedOut){ //Apply business logics here}


创建及修改时间
Created: 12/21/2012

Last Modified: 1/15/2013
原文链接
http://support.esri.com/en/kno ... 40771

要回复问题请先登录注册