Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.