Quantcast
Channel: Forums - ArcObjects SDKs
Viewing all articles
Browse latest Browse all 1374

Use ArcGIS for Server license with ArcObject process

$
0
0
Hi,

Is it still possible to use an ArcGIS for Server license in a ArcObject Java program?
If yes, how to do so?

What has been tried:
Code:

EngineInitializer.initializeServer(esriProductCode.esriProductCodeServerStandardEdition);
           
EngineInitializer.initLicensing(esriProductCode.esriProductCodeServerStandardEdition, "C:\\Program Files\\ArcGIS\\Server\\bin");

The result:
Code:

Exception in thread "main" AutomationException: 0x80040228 - The Product License has not been initialized. in 'Esri GeoDatabase'
      at com.esri.arcgis.datasourcesGDB.FileGDBWorkspaceFactory.openFromFile(Unknown Source)
      at TestLicense.main(TestLicense.java:60)


Viewing all articles
Browse latest Browse all 1374

Trending Articles