Top "Classloader" questions

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

Java, Classpath, Classloading => Multiple Versions of the same jar/project

I know this may be a silly question for experienced coders. But I have a library (an http client) that …

java jar classpath classloader
Class.forName() vs ClassLoader.loadClass() - which to use for dynamic loading?

When dynamically loading a class, when is it appropriate to use Class.forName("SomeClass"); and when should I use ClassLoader.…

java classloader
this.getClass().getResource("").getPath() returns an incorrect path

I am currently making a small simple Java program for my Computer Science Final, which needs to get the path …

java classloader filepath
How to get Java File absolute path from InputStream?

I'm on Java 6 and I have a method that scans the runtime classpath for a file called config.xml. If …

java file-io classpath classloader absolute-path
How to get classpath from classloader?

I am using some third party code which when given a '-classpath' command line argument doesnt set the java.class.…

java classloader contextclassloader
ClassLoader getResourceAsStream returns null

My project directory structure (in Eclipse): MyProject/ src/ --> "source directory" on Eclipse's classpath/buildpath com.me.myapp Driver …

java eclipse classpath classloader inputstream
When is the static block of a class executed?

I have 2 jars, let's call them a.jar and b.jar. b.jar depends on a.jar. In a.jar, …

java jvm initialization classloader static-block
What is a Java ClassLoader?

In a few simple sentences, what is a Java ClassLoader, when is it used and why? OK, I read a …

java classloader
How to find which jars and in what order are loaded by a classloader?

I could not find a clear answer to this question elsewhere, so I'll try here: Is there some way (programmatic …

java jar classloader