Top "Classloader" questions

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

How to determine main class at runtime in threaded java application?

I want to determine the class name where my application started, the one with the main() method, at runtime, but …

java runtime stack-trace classloader main
How to use JPA2 on JBoss 5.x ? (or How to eliminate class loading isolation issue?)

I would like JBoss to use only the dependencies located in my war file. Each time I deploy this war …

java classloader war jboss5.x
Java : in what order are static final fields initialized?

Okay, so say I have a class that looks like this : public class SignupServlet extends HttpServlet { private static final Logger …

java static initialization classloader final
How to get classloader for a bundle in equinox?

I have read a lot of equinox code for this, but still can't figure out a non-hacky way of getting …

eclipse osgi classloader bundle equinox
Jar hell: how to use a classloader to replace one jar library version with another at runtime

I'm still relatively new to Java, so please bear with me. My issue is that my Java application depends on …

java jar classpath classloader
convert Class object to bytes

If I have a Class instance at runtime, can I get its byte[] representation? The bytes I'm interested in would …

java classloader
How to diagnose a Java 8 metaspace leak?

I have a J2EE application with some interesting behavior ... the heap seems to behave well, growing and shrinking with …

memory-leaks java-8 classloader permgen metaspace
ClassCircularityError thrown by ClassLoader.defineClass

I'm loading classes using a custom class loader. For the most part, everything works, but sometimes when I load particularly …

java circular-dependency classloader
When and how is a java classloader marked for garbage collection?

We are creating multiple child classloaders to load in multiple subapplications into a Java application "container", prototyping hot deployment. When …

java garbage-collection classloader memory-leaks