Top "Classloader" questions

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

How to load JAR files dynamically at Runtime?

Why is it so hard to do this in Java? If you want to have any kind of module system …

java jar classloader
URL to load resources from the classpath in Java

In Java, you can load all kinds of resources using the same API but with different URL protocols: file:///tmp.…

java url classloader
Caused By: java.lang.NoClassDefFoundError: org/apache/log4j/Logger

I've got an interesting problem in which the org.apache.log4j.Logger class is not found during runtime. I'm …

java logging classpath classloader intuit-partner-platform
How do I put all required JAR files in a library folder inside the final JAR file with Maven?

I am using Maven in my standalone application, and I want to package all the dependencies in my JAR file …

java maven jar build-process classloader
How to use ClassLoader.getResources() correctly?

How can I use ClassLoader.getResources() to find recursivly resources from my classpath? E.g. finding all resources in the …

java resources classpath classloader getresource
this.getClass().getClassLoader().getResource("...") and NullPointerException

I have created a minimal maven project with a single child module in eclipse helios. In the src/test/resources …

eclipse maven-2 classloader
Find where java class is loaded from

Does anyone know how to programmaticly find out where the java classloader actually loads the class from? I often work …

java classpath classloader
Scanning Java annotations at runtime

What is the best way of searching the whole classpath for an annotated class? I'm doing a library and I …

java annotations classloader
Java resource as file

Is there a way in Java to construct a File instance on a resource retrieved from a jar through the …

java resources classloader
How to load a jar file at runtime

I was asked to build a java system that will have the ability to load new code (expansions) while running. …

java jar runtime classloader