classloader
Getting variables and methods of class from loaded class.
My scenario: A class is going to be loaded from a number of different classes using ClassLoader. How do I get the methods and variables from the class that loads开发者_StackOverflow another class -[详细]
2023-03-24 10:56 分类:问答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 two libraries. Let\'s call them Library 1 and Library 2.Both of these libraries share a mutu[详细]
2023-03-24 06:41 分类:问答Excluding certain classes from a thread's context classloader in Java?
If I have a program invoked in the following way java -cp a.jar;b.jar;c.jar MainClass All the classes from a.jar, b.jar, and c.jar will be available to all the threads in my program. I\'d like to h[详细]
2023-03-24 01:54 分类:问答Singletons in Multiple Classloader and VM cases
How to safely code Singletons in case of two or more Classloaders and VMs. I see this problem explained at: http://java.sun.com/developer/technicalArticles/Programming/singletons/[详细]
2023-03-23 23:43 分类:问答Joda Time Zone pattern changing in environments
I am confused about why my date time formatting output for some time zones is changing on my environments.[详细]
2023-03-23 21:54 分类:问答java.lang.LinkageError Error in Class Loading
I have some problem with my JSystem/Java/Eclipse enviromment. I get this error and i don\'t understand what is wrong:[详细]
2023-03-23 18:09 分类:问答Is it possible to dynamically load a library at runtime from an Android application?
Is there any way to make an Android application to download and use a Java library at runtime? Here is an example:[详细]
2023-03-23 18:04 分类:问答Java loading resources Class.class.getResource vs <classname>.class.getResource
What is the difference between the two ? my resource files are packaged in the roo开发者_开发知识库t level package. And calling Class.class.getResource(\"/rec.txt\") seemed to work in the specific c[详细]
2023-03-22 17:03 分类:问答Simplest way to get Class.getResource()to use current ThreadContext class loader
It would seem that Class.getResource() uses the Class class loader and ignores the Thread context class loader which is not what i wan开发者_运维问答t. Any tipson how toget around this ?Just go and ge[详细]
2023-03-22 10:47 分类:问答Classloader issue when invoking EJB method via JMX in JBoss AS6
I\'m currently using AS6.final, with Weld upgraded to 1.1.1.final. EAR class isolatation is turned off. I have an EJB singleton, that I\'ve registered with JMX - the EJB class is packaged in a JAR wit[详细]
2023-03-21 22:23 分类:问答