AutomationException: 0x5 - Access is denied. in 'Invoke' . Getting error on this line
AoInitialize aoInit = new AoInitialize();
I downloaded the SDK for Java 10.5 (ArcGIS Desktop Version ) from my.esri.com and installed the software . Added the libraries in eclipse . I am trying to initialize the license using AoInitialize object but I got the error in the first line of the code itself (AoInitialize aoInit = new AoInitialize())
java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
ArcGIS version is 10.5