Top "Classloader" questions

A class loader is an object that is responsible for loading classes in Java.

Is it possible to have the System ClassLoader load .class files specified at run time?

I am writing a static analysis tool for an assignment, it analyses Java bytecode using the ASM library. One of …

java classpath classloader bytecode java-bytecode-asm
Load DEX file dynamically on Android 5.0

Prior to Android 5.0 I was able to load DEX files dynamically using DexClassLoader and calling loadClass() method but with the …

android classloader dex android-runtime dex2oat
java.lang.NoClassDefFoundError: org/dom4j/Document

I have a class called XMLtoXML.java and this is one of it's methods... import org.dom4j.Document; import …

java weblogic classloader noclassdeffounderror dom4j
Do I have a JAXB classloader leak

I have an application deployed on Glassfish. Over time the number of loaded classes climbs into the millions and my …

java memory-leaks classloader permgen
How do Spring annotations work?

Motivation As a follow-up to my previous questions on classloading How is the Classloader for a class chosen? How Classloader …

spring annotations classloader spring-ioc
Loading two classes in different JARs

I got two classes with the same package in different JARs. Until the previous version, both classes were identical, so …

java classpath classloader websphere-6.1
IllegalAccessError:class <classname> cannot access its superinterface <interfacename>

I have class Assembly implementing IAssembly. I see following error when starting the application Caused by: java.lang.IllegalAccessError: class &…

java classloader cobertura
Can't find Class with Class.forName() but it exists

I have a program in which I am generating classes at runtime (included only variable and associated getters and setters …

java reflection classloader urlclassloader
Custom MBean in Tomcat - cannot find javaURLContextFactory when creating InitialContext

I've written a custom MBean that deploys in Tomcat 6. One of its tasks is to query a database value. I'm …

java tomcat classloader jmx classnotfound
Kotlin: MyClass::class.java vs this.javaClass

I'm migrating a project to Kotlin, and this: public static Properties provideProperties(String propertiesFileName) { Properties properties = new Properties(); InputStream inputStream = …

java classloader kotlin