Hi Tim,

On Mon, Aug 11, 2025 at 2:33 PM Tim Mann <harlan...@gmail.com> wrote:

> I have downloaded and added the commons.imaging jar files to my project
> library folder in Netbeans.  I copied the source code from github for
> src/test/java/org/apache/commons/imaging/examples/MetadataExample.java
>
> when I run the program I get an error message at the first code line:
> final ImageMetadata metadata = Imaging.getMetadata(file);
>
> The error is Exception in thread "AWT-EventQueue-0"
> java.lang.NoClassDefFoundError: org/apache/commons/io/build/AbstractOrigin
>

Commons IO and Commons Lang are dependencies of Commons Imaging [1]. From
the message above, it looks like your project is missing the commons-io jar.
You mentioned downloading and adding commons imaging jar to your project
library folder, so I would assume you are not using a build / dependency
manager tool like Maven, Ivy or Gradle? If so, may I recommend using one of
those as they will automatically pull in transitive dependencies.


>
> I am an experienced java programmer but I have no experience with the
> commons.imaging library.  Any suggestions to help me resolve this issue is
> greatly appreciated.
>
> I have attached a screenshot of the code & error message.
>
> --
> Regards,
>
> Tim Mann
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
> For additional commands, e-mail: user-h...@commons.apache.org


[1] https://commons.apache.org/proper/commons-imaging/dependencies.html

Reply via email to