Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / April 2008

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Jason Stacy - 26 Apr 2008 15:39 GMT
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.
Lion-O - 26 Apr 2008 16:31 GMT
> 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



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.