A *crude way* is to get a reference to the current context classloader. If
the classloader is a URLClassloader - you can call getURLs() to get the
classpath for that loader. Then keep calling classloader.getParent() and keep
casting to a URLClassloader until parent is null.
-Tim
Mike Jackson wrote:
How can I get the current classpath at runtime as "seen" by any class in a
particular context? I know I can run System.getProperty( "java.class.path"
), but that seems to just show me the classpath at startup of tomcat rather
than for objects within the webapp.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]