ExtensionNotLoadedException (Apache OpenNLP Tools 1.9.5 API)
Date: 2026-06-18

opennlp.tools.util.ext

## Class ExtensionNotLoadedException

- java.lang.Object
- - java.lang.Throwable
  - - java.lang.Exception
    - - java.lang.RuntimeException
      - - opennlp.tools.util.ext.ExtensionNotLoadedException

- All Implemented Interfaces:
    Serializable

      public class ExtensionNotLoadedException
      extends RuntimeException

  Exception indicates that an OpenNLP extension could not be loaded.
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ExtensionNotLoadedException(String message)`
    `ExtensionNotLoadedException(Throwable t)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `isOSGiEnvironment()` Indicates if OpenNLP is running in an OSGi environment or not.

    - ### Methods inherited from class java.lang.Throwable

      `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString`

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### ExtensionNotLoadedException

          public ExtensionNotLoadedException(String message)

    - #### ExtensionNotLoadedException

          public ExtensionNotLoadedException(Throwable t)

  - ### Method Detail

    - #### isOSGiEnvironment

          public boolean isOSGiEnvironment()

      Indicates if OpenNLP is running in an OSGi environment or not.
      Returns:
        true if running in an OSGi environment

Copyright © 2026 The Apache Software Foundation. All rights reserved.