Assume I have a long, long CLASSPATH containing approx 20 (or more) *.jar archives.
Is there a way to AUTOMATICALLY check if all mentioned *.jar files really exist?
I could imagine a command (or even java class) which checks this from command line:
java check_cp &CLASSPATH%
or similar
J.
> Assume I have a long, long CLASSPATH containing approx 20 (or more) *.jar
> archives. Is there a way to AUTOMATICALLY check if all mentioned *.jar files
> really exist?
I doubt it. This is because Java doesn't really care about the jarfiles
themselves, only the classes which they contain. It will only try opening them
whenever it needs to access a certain class.
So I think that the only way to be sure is manually listing the classpath, then
grabbing all file entries and finally start checking up if those exist.
Groetjes, Peter

Signature
.\\ PGP/GPG key: http://www.catslair.org/pubkey.asc