Unable to initialize ArcObjects environment

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

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

   //Initialize ArcGIS license
   AoInitialize aoInit = new AoInitialize();

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.