How to find a jar in dir tree which contains a special class/package aaa.bbb.ccc

J

Jason Stacy

Assume I have a class

aaa.bbb.ccc.SomeClass

or whole import package

aaa.bbb.ccc

The compiler shows a "NoClassFound" error.
So I have to add another jar to my CLASSPATH.

However I don't know the exact jar which must be added.

How can I search a whole directory (which contains approx 30-40 jars) for the appropriate
jar which contains the class resp. package ?

Of cause I don't want to open every single jar and to step down inside the archive manually.

I want a one-line command line command which does the job for me.

J.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,186
Members
46,740
Latest member
JudsonFrie

Latest Threads

Top