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. 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).

  3. 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() …

  4. java - Cannot be cast to class - they are in unnamed module of loader ...

    In my case it was a little bit different. Class Cast Exception sometime happen because of the conflict between different version of the java. in pom.xml i set to use "<java.version>1.8</java.version> but in …

  5. 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 …

  6. 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 …

  7. java - Class.forName () vs ClassLoader.loadClass () - which to use for ...

    In class loader subsystem it executes all the three phases i.e. load, link, and initialize phases. ClassLoader.loadClass() behavior, which delays initialization until the class is used for the first time.

  8. jvm - Java verbose class loading - Stack Overflow

    I am trying to list the order in which the Java class loader is loading my classes. if I use -verbose parameter it will list every single interface/class it loads, including tons of interfaces such...

  9. 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 …

  10. 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 …