I cannot for the life of me find a definition of what the Java VM flag CMSClassUnloadingEnabled actually does, other than some very fuzzy high-level definitions such as “gets...
Does anyone know how to programmaticly find out where the java classloader actually loads the class from? I often work on large projects where the classpath gets very long...
In Java, you can load all kinds of resources using the same API but with different URL protocols: file:///tmp.txt http://127.0.0.1:8080/a.properties jar:http://www.foo.com/bar/baz.jar!/COM/foo/Quux.class This nicely decouples the actual loading of the...
I wonder what the difference is between Class.getResource() and ClassLoader.getResource()? edit: I especially want to know if any caching is involved on file/directory level. As in “are directory listings...
What is the difference between a thread’s context class loader and a normal class loader? That is, if Thread.currentThread().getContextClassLoader() and getClass().getClassLoader() return different class loader objects, which one will...
How do I search the whole classpath for an annotated class? I’m doing a library and I want to allow the users to annotate their classes, so when the...
Why is it so hard to do this in Java? If you want to have any kind of module system you need to be able to load JAR files...
In my office, the mere mention of the word Xerces is enough to incite murderous rage from developers. A cursory glance at the other Xerces questions on SO seem...