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



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

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

.



Relevant Pages

  • Re: java decoder?
    ... JAR files are usually ZIP archives, so you can extract them easily ... The tricky part is then to find a "Java decompiler". ... I've used `Mocha' ...
    (freebsd-questions)
  • File Association for JARS
    ... The problem is that Java JAR files are both Archives and Executables. ... Ubuntu seems to be set up so that a JAR looks like a ZIP file. ...
    (Ubuntu)
  • Re: package and jar files
    ... > I am new to Java. ... This class is placed in the package nl.opk, ... can also include source code, ... .jar files are created using the jar tool supplied with the JDK/SDK. ...
    (comp.lang.java.programmer)
  • Re: [OT] java classpath
    ... constantly cursed the java classpath because instead of being able to just list ... That hasn't been my experience -- for all the Java programs I've ... there were some issues concerning jar files). ... directories - each jar file has a fully qualified entry. ...
    (comp.text.tex)
  • Re: What happened? My "https applets" stopped working
    ... I will look at the Java encryption thing now. ... They don't work in either browser, ... I can work around one of the applets, and not see wht I'm posting to ... > contains two JAR files. ...
    (comp.lang.java.help)