Re: error with initial use of commons.imaging

Gary Gregory <[email protected]> Mon, 11 Aug 2025 19:19:32 -0400
Newsgroups gmane.comp.jakarta.commons.user
Message-ID <CACZkXPyjGpGNMjDdqz7Ld28ff2QrMCjz+UNcX=FBRikdx8czmA@mail.gmail.com>
--000000000000a49bfa063c1f284c
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hello Bindul,

I recommend you use Maven to manage your project. None of this would have
been an issue with Maven...

Gary


On Mon, Aug 11, 2025, 18:39 Tim Mann <[email protected]> wrote:

> Thank you Bindul.  Adding io & lang to the project path resolved the issu=
e.
>
> On Mon, Aug 11, 2025 at 3:56=E2=80=AFPM Bindul Bhowmik <bindulbhowmik@gma=
il.com>
> wrote:
>
> > Hi Tim,
> >
> > On Mon, Aug 11, 2025 at 2:33=E2=80=AFPM Tim Mann <[email protected]> =
wrote:
> >
> > > I have downloaded and added the commons.imaging jar files to my proje=
ct
> > > library folder in Netbeans.  I copied the source code from github for
> > > src/test/java/org/apache/commons/imaging/examples/MetadataExample.jav=
a
> > >
> > > when I run the program I get an error message at the first code line:
> > > final ImageMetadata metadata =3D 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]. Fr=
om
> > 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.
> >
> >
> > >
> > > I am an experienced java programmer but I have no experience with the
> > > commons.imaging library.  Any suggestions to help me resolve this iss=
ue
> > is
> > > greatly appreciated.
> > >
> > > I have attached a screenshot of the code & error message.
> > >
> > > --
> > > Regards,
> > >
> > > Tim Mann
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [email protected]
> > > For additional commands, e-mail: [email protected]
> >
> >
> > [1] https://commons.apache.org/proper/commons-imaging/dependencies.html
> >
>
>
> --
> Regards,
>
> Tim Mann
>

--000000000000a49bfa063c1f284c--