HOW TO
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.
C:\Program Files\Java\<jre6>
Verify the version of the JRE
C:\Program Files\ArcGIS\Server\framework\lib
Verify the arcobjects.jar version
Code:
EngineInitializer.initializeServer(esriProductCode.esriProductCodeServerStandardEdition);
Code:
AoInitialize ao = new AoInitialize();
int status = ao.initialize(esriLicenseProductCode.esriLicenseProductCodeArcServer);
if (status == esriLicenseStatus.esriLicenseCheckedOut)
{
//Apply business logics here
}
Get help from ArcGIS experts
Download the Esri Support App