ishan00kaushik

Unable to initialize ArcObjects environment

Discussion created by ishan00kaushik on Jul 12, 2013
Latest reply on Jul 15, 2013 by sachin.kanaujia.gis
Hi,

I build a application in ArcGis engine environment which has bootstrap methord to initialise jar file , and following is code to initialise engine license --

                                      
                                  EngineInitializer.initializeEngine();
   //Initialize ArcGIS license
   AoInitialize aoInit = new AoInitialize();
   initializeArcGISLicenses(aoInit);


But when i try to run this destop application in arcGis destop environment its generating error --



Unable to initialize ArcObjects environment.
AutomationException: 0x800401f5 - The specified product or version does not exis
t on this machine. in 'ArcGISVersion.Version'
 

I have changed variable to "AGSDESKTOPJAVA" and created the ARCGIS-LICENSE-FILE variable too.
Is there anything else to be changed , if not what is the error . The bold part above is where it generates error.

Outcomes