Does someone knows a utility which can determine which are the needed
jars to run a program.
Recently, I tried to use Betwixt of the Jakarta project, and I had
successively to add commons-digester.jar, commons-collections.jar,
commons-logging.jar, commons-beanutils.jar in the classpath to fix the
java.lang.NoClassDefFoundError exceptions I had raised.
That's why I'm asking myself if there isn't a tool which can find the
missing classes and, eventually, look for the jars that contains them.
I already use an Eclipse plug-in (Jar Class Finder) which scans all
the jars of a specified directory, searching a class name.
This kind of utility could be a part of the solution.
Roedy Green - 19 Jul 2004 22:26 GMT
>That's why I'm asking myself if there isn't a tool which can find the
>missing classes and, eventually, look for the jars that contains them.
I use Jet for that. It does not do it all in one pass, but once you
stop getting compile time error messages, you know you have nailed
them all.
see http://mindprod.com/jgloss/jet.html
See http://mindprod.com/jgloss/jar.html
PackaJar and The Cannery are old tools that still might work. Links no
longer work. Perhaps someone can track them down. Kevin Kelly did the
Cannery.
See also http://mindprod.com/projects/javajarcatalog.html
http://mindprod.com/projects/jarverifier.html

Signature
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.