error with initial use of commons.imaging
Tim Mann <[email protected]> Mon, 11 Aug 2025 15:31:12 -0500
| Newsgroups | gmane.comp.jakarta.commons.user |
|---|---|
| Message-ID | <CAFtii8eN61u+PgxtdrXrQX7Be36NA4UbRJD9pC2tNh7COwQ2Tg@mail.gmail.com> |
--000000000000c0cf39063c1ccec4 Content-Type: multipart/alternative; boundary="000000000000c0cf37063c1ccec2" --000000000000c0cf37063c1ccec2 Content-Type: text/plain; charset="UTF-8" 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 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 --000000000000c0cf37063c1ccec2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div><div class=3D"gmail_default" style=3D"font-family:ari= al,sans-serif">I have downloaded and added the commons.imaging jar files to= my project library folder in Netbeans.=C2=A0 I copied the source code from= github for src/test/java/org/apache/commons/imaging/examples/MetadataExamp= le.java</div><div class=3D"gmail_default" style=3D"font-family:arial,sans-s= erif"><br></div><div class=3D"gmail_default" style=3D"font-family:arial,san= s-serif">when I run the program I get an error message at the first code li= ne:</div><div class=3D"gmail_default" style=3D"font-family:arial,sans-serif= ">final ImageMetadata metadata =3D Imaging.getMetadata(file);</div><div cla= ss=3D"gmail_default" style=3D"font-family:arial,sans-serif"><br></div><div = class=3D"gmail_default" style=3D"font-family:arial,sans-serif">The error is= =C2=A0Exception in thread "AWT-EventQueue-0" java.lang.NoClassDef= FoundError: org/apache/commons/io/build/AbstractOrigin</div><br clear=3D"al= l"></div><div><div class=3D"gmail_default" style=3D"font-family:arial,sans-= serif">I am an experienced java programmer but I have no experience with th= e commons.imaging library.=C2=A0 Any suggestions=C2=A0to help me resolve th= is issue is greatly appreciated.</div><div class=3D"gmail_default" style=3D= "font-family:arial,sans-serif"><br></div><div class=3D"gmail_default" style= =3D"font-family:arial,sans-serif">I have attached a screenshot of the code = & error message.</div><br></div><span class=3D"gmail_signature_prefix">= -- </span><br><div dir=3D"ltr" class=3D"gmail_signature" data-smartmail=3D"= gmail_signature"><div dir=3D"ltr">Regards,<div><br></div><div>Tim Mann</div= ><div><br></div></div></div></div> --000000000000c0cf37063c1ccec2-- --000000000000c0cf39063c1ccec4 Content-Type: text/plain; charset=us-ascii --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] --000000000000c0cf39063c1ccec4--