Re: error with initial use of commons.imaging
Tim Mann <[email protected]> Mon, 11 Aug 2025 20:11:09 -0500
| Newsgroups | gmane.comp.jakarta.commons.user |
|---|---|
| Message-ID | <[email protected]> |
Gary, I resolved my issue with Bindul=E2=80=99s assistance=20 Tim Mann Sent from my iPhone > On Aug 11, 2025, at 7:58=E2=80=AFPM, Gary Gregory <[email protected]>= wrote: >=20 > =EF=BB=BFHi Bindul, >=20 > Right! Sorry about that. >=20 > Gary >=20 >=20 >> On Mon, Aug 11, 2025, 19:48 Bindul Bhowmik <[email protected]> wrot= e: >>=20 >> Hello Gary, >>=20 >> I=E2=80=99m not sure if you meant to address that comment to me. I was me= rely >> trying to help Tim here, and if you read my email, I suggested they use >> maven or gradle or ivy. >>=20 >> Bindul >>=20 >> On Aug 11, 2025, at 17:19, Gary Gregory <[email protected]> wrote: >>=20 >> =EF=BB=BFHello Bindul, >>=20 >> I recommend you use Maven to manage your project. None of this would have= >> been an issue with Maven... >>=20 >> Gary >>=20 >>=20 >>> On Mon, Aug 11, 2025, 18:39 Tim Mann <[email protected]> wrote: >>>=20 >>> Thank you Bindul. Adding io & lang to the project path resolved the >> issue. >>>=20 >>> On Mon, Aug 11, 2025 at 3:56=E2=80=AFPM Bindul Bhowmik <bindulbhowmik@gm= ail.com> >>> wrote: >>>=20 >>>> Hi Tim, >>>>=20 >>>> On Mon, Aug 11, 2025 at 2:33=E2=80=AFPM Tim Mann <[email protected]> w= rote: >>>>=20 >>>>> I have downloaded and added the commons.imaging jar files to my projec= t >>>>> library folder in Netbeans. I copied the source code from github for >>>>> src/test/java/org/apache/commons/imaging/examples/MetadataExample.java= >>>>>=20 >>>>> when I run the program I get an error message at the first code line: >>>>> final ImageMetadata metadata =3D Imaging.getMetadata(file); >>>>>=20 >>>>> The error is Exception in thread "AWT-EventQueue-0" >>>>> java.lang.NoClassDefFoundError: >>>> org/apache/commons/io/build/AbstractOrigin >>>>>=20 >>>>=20 >>>> 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 projec= t >>>> library folder, so I would assume you are not using a build / dependenc= y >>>> manager tool like Maven, Ivy or Gradle? If so, may I recommend using on= e >>> of >>>> those as they will automatically pull in transitive dependencies. >>>>=20 >>>>=20 >>>>>=20 >>>>> I am an experienced java programmer but I have no experience with the >>>>> commons.imaging library. Any suggestions to help me resolve this issu= e >>>> is >>>>> greatly appreciated. >>>>>=20 >>>>> I have attached a screenshot of the code & error message. >>>>>=20 >>>>> -- >>>>> Regards, >>>>>=20 >>>>> Tim Mann >>>>>=20 >>>>>=20 >>>>> --------------------------------------------------------------------- >>>>> To unsubscribe, e-mail: [email protected] >>>>> For additional commands, e-mail: [email protected] >>>>=20 >>>>=20 >>>> [1] https://commons.apache.org/proper/commons-imaging/dependencies.html= >>>>=20 >>>=20 >>>=20 >>> -- >>> Regards, >>>=20 >>> Tim Mann >>>=20 >>=20 >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >>=20 >>=20