About 50 results
Open links in new tab
  1. What is a Java ClassLoader? - Stack Overflow

    Mar 11, 2010 · In a few simple sentences, what is a Java ClassLoader, when is it used and why? OK, I read a wiki article. ClassLoader loads classes. OK. So if I include jar files and import, a ClassLoader …

  2. What is the purpose of the Java Class loader? - Stack Overflow

    Jun 29, 2011 · JavaRanch: When is a class loaded? The Basics of Java Class Loaders why do we need the notion of a class loader Class loaders allow us to load classes from various sources. a jar file on …

  3. java - Flow of class loading for a simple program - Stack Overflow

    Dec 27, 2013 · The Java Virtual Machine starts up by creating an initial class, which is specified in an implementation-dependent manner, using the bootstrap class loader (§5.3.1).

  4. What loads the Java system classloader? - Stack Overflow

    Jul 9, 2012 · It loads the classes and jars specified by the CLASSPATH environment variable You could try to inject your custom class loader by means of the java.system.class.loader property (see …

  5. java - Difference between thread's context class loader and normal ...

    Mar 19, 2019 · 313 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() …

  6. java - Custom ClassLoader, how to use? - Stack Overflow

    Aug 13, 2017 · Java uses ClassLoader implicitly when you use new, import keyword, the jvm will use the current class's classloader to load the dependent classes, so you can use the custom classloader to …

  7. How to change default class loader in Java? - Stack Overflow

    Jun 16, 2011 · However, if I do this: java -cp Example.jar -Djava.system.class.loader=example.ClassLoader example.ClassB ClassB uses my class loader, but …

  8. Find where java class is loaded from - Stack Overflow

    May 27, 2014 · 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 and manual …

  9. java - How to use ClassLoader.getResources () correctly ... - Stack ...

    Mar 4, 2011 · How can I use ClassLoader.getResources() to find recursivly resources from my classpath? E.g. finding all resources in the META-INF "directory": Imagine something like …

  10. java - How to get classpath from classloader? - Stack Overflow

    Jul 23, 2012 · In a plugin class to this code that I have written, I get an instance of this classloader, and somehow need to use it to get back the underlying classpath, so that I can use it in an invocation of …