mvillemontesrifrance-fr-esridist

Use ArcGIS for Server license with ArcObject process

Discussion created by mvillemontesrifrance-fr-esridist Employee on Dec 18, 2012
Latest reply on Dec 20, 2012 by ldonahue
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:
EngineInitializer.initializeServer(esriProductCode.esriProductCodeServerStandardEdition);
            
EngineInitializer.initLicensing(esriProductCode.esriProductCodeServerStandardEdition, "C:\\Program Files\\ArcGIS\\Server\\bin");


The result:
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)

Outcomes