Anyway to locate JarFile instances or .class files?

Yeah … I'm trying to dynamically load classes at runtime. It works when I can get a JarFile instance to scan for the class files … so I'm wondering if anyone knows of a way to "get all JarFile objects in the current Runtime"



… or scan for .class files. I had an example of how to do that but it didn't work outside of Eclipse.

Try with the system properties (System.getProperty) "java.class.path" and "java.ext.dirs".



They should contains lists of File.pathSeparator separated entries where each entry is a jar file or a directory containing jar files used by the current jvm session.

Perfect - that has the .class files and the jars.



I can dynamically load GUI options at Runtime now - thanks.