Top "Classloader" questions

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

How do I create a parent-last / child-first ClassLoader in Java, or How to override an old Xerces version that was already loaded in the parent CL?

I would like to create a parent-last / child-first class loader, e.g. a class loader that will look for classes …

java classloader
How does class loading work when the same class exists in different applications on the same server?

I have multiple web-apps running on an app server and each web-app WAR file contains a copy of the same …

java jakarta-ee classloader war-filedeployment
How is the Java Bootstrap Classloader loaded?

In java, it is said that all the classes are being loaded by classloaders. So first of all, bootstrap classloader …

java classloader bootstrapping
Use Absolute path for ClassLoader getResourceAsStream()

I am trying to use ClassLoader getResourceAsStream() My Direcory structure is like below: Project1 -src -main -java -webapp -WEB-INF -MYLOC …

java classpath classloader absolute-path
What loads the java system classloader?

We know that we can override the System classloader with: java -Djava.system.class.loader=com.test.MyClassLoader xxx Then, …

java classloader
Can I set the classloader policy for WebSphere in the ibm-web-bnd.xmi file?

I have a JEE application that runs on WAS 6. It needs to have the class loader order setting to "Classes …

java websphere classloader
Java: Difference between Class.forName and ClassLoader.loadClass

What is the difference between Class.forName and ClassLoader.loadClass in the following codes: Class theClass = Class.forName("SomeImpl"); SomeImpl …

java classloader
getClass().getClassLoader() is null, why?

I've got some code that calls.. x = getClass().getClassLoader(); This returns null though. When I start the same code not …

java eclipse classloader
How to explore which classes are loaded from which JARs?

Is there a way to determine which classes are loaded from which jars at runtime? I'm sure we've all been …

java profiling classloader jar
Check if class exists in Java classpath without running its static initializer?

If I use try { Class.forName("my.package.Foo"); // it exists on the classpath } catch(ClassNotFoundException e) { // it does not …

java class classloader