Sign up ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I've been assigned the task of translating an old ArcGIS VBA script into a Java add-in. I finished the rough translation of the code, now I'm starting the debug process. The first unit test I want to set up is the creation of an Application object. I'm getting the error "0x80040154 - Class not registered". Any ideas? I'm a very novice programmer so I'm open to any suggestions. Thank you.

Here's the code for my test:

public void testOnClick() {
    try {
        AoInitialize ao = new AoInitialize();
        IApplication app = new Application();
    catch (UnknownHostException e) {
        System.out.println("UnknownHostException: " + e.toString());
    catch (IOException e) {
        System.out.println("IOException: " + e.toString());
share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.