Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java Help > Re: How to chec...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 16025 of 16590
Post > Topic >>

Re: How to check if all *.jars in my CLASSPATH really exists? Automatic check (not manual) possible?

by Lion-O <nosp@[EMAIL PROTECTED] > Apr 26, 2008 at 10:31 AM

> 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 cl***** 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

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




 2 Posts in Topic:
How to check if all *.jars in my CLASSPATH really exists? Autom
jjstacy@[EMAIL PROTECTED]  2008-04-26 14:39:22 
Re: How to check if all *.jars in my CLASSPATH really exists? A
Lion-O <nosp@[EMAIL PR  2008-04-26 10:31:50 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Dec 3 14:43:19 CST 2008.