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

Unable to initialize ArcObjects environment

$
0
0
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 --

Code:

                                  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 --



Code:

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.

Viewing all articles
Browse latest Browse all 1374

Trending Articles