Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > How to find a jar in dir tree which contains a special class/package aaa.bbb.ccc

Reply
Thread Tools

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

 
 
Jason Stacy
Guest
Posts: n/a
 
      05-12-2007
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.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
java -cp a.jar -jar b.jar => Works on Windows, not on Debian cyberco Java 4 02-14-2006 06:27 AM
jaas.jar, jta.jar jdbc-stdext.jar missing from jdk1.5 RPM muttley Java 0 10-20-2005 02:40 PM
Differences of xercesImpl.jar, xercesImpl-J.jar, dom3-xercesImpl.jar ? Arnold Peters Java 0 01-05-2005 10:59 PM
Differences of xercesImpl.jar, xercesImpl-J.jar, dom3-xercesImpl.jar ? Arnold Peters XML 0 01-05-2005 10:59 PM



Advertisments