Top "Classloader" questions

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

Does the Java ClassLoader load inner classes?

If I have a inner class declaration such as: Class A { public static class B { } } followed by: Class<?> …

java classloader
PermGen space issue with Glassfish/Hibernate

I'm running a GWT+Hibernate app on Glassfish 3.1. After a few hours, I run out of Permgen space. This is …

java memory-leaks classloader glassfish-3 permgen
ClassCastException because of classloaders?

While playing with classloaders i got the following exception: Exception in thread "main" java.lang.ClassCastException: xxx.Singleton cannot be …

java jvm classloader scjp
getResourceAsStream from JUnit

I am creating a JUnit TestCase for a project which needs to load a configuration file during initialization. This configuration …

java junit classloader getresource
Where on the file system was my Java class loaded from?

I think this is a situation every Java programmer runs into if they do it long enough. You're doing some …

java debugging classloader
Method should call once and only once in its lifecycle

I have a method which is actually a scheduler which runs a process in every one hour and create a …

java static classloader application-lifecycle
Java Classloader - how to reference different versions of a jar

This is a common problem. I'm using 2 libraries A.jar and B.jar and these depend on different versions of …

java jar dependencies classloader versions
Jython CLASSPATH, sys.path and JDBC drivers

How can I add JDBC drivers at runtime to Jython? Using CLASSPATH works, but using sys.path doesn't work with …

jdbc jython classloader
OSGi, Java Modularity and Jigsaw

So as of yesterday morning I hadn't a clue as to what OSGi even was. OSGi was just some buzzword …

java osgi classloader java-platform-module-system
Java - Inject java agent in to running jvm

Basically, I am trying to write something that lists every class loaded by the JVM. What I wrote works, but …

java jvm classloader javaagents