reflection « jar « Java I/O Q&A





1. Java reflection and manifest file in jar    stackoverflow.com

I would like to (and I don't know if it's possible) do something if jarA is in my classpath and do something else if jarB is in my classpath. I ...

2. Java: Easy way to get method stub out of class files within a JAR file? Reflection?    stackoverflow.com

I'm searching for a way to get a list of method stubs of all classes within a jar file. I'm not sure where to start... May I use Reflection or Javassist or ...

3. Creating a custom class in the same package defined by a jar file (JMF custom data sources implementation)    stackoverflow.com

I'm trying to extend the JMF implementation for custom data sources in a custom environment. My JMF implementation is packed to a jar file (only class files, all obfuscated). The JMF's package manager ...

4. Dumping java.lang.Class's originated from jar files    stackoverflow.com

I am trying to find a way to collected all java.lang.Class's loaded from jar files but ignore the ones from the source code itself. I have found java.lang.instrument.Instrumentation interface and thought ...

5. How to execute a method remotely on a jar file    stackoverflow.com

I have an application whose purpose is to call the same particular method in the same class in lots of different jar files spread across a file system and receive back ...

6. Working with Java JAR files from cmdline    stackoverflow.com

Let us have a Java application, contained in files A.java and B.java with dependency on somejar.jar file. The questions are:

  • how to create a self-runnable JAR file with all the dependencies and ...

7. Applying reflection on jar files    coderanch.com

I think what he meant to say is that you asked the same question here and he answered it. Asking the same question in multiple forums can create duplicate conversations and waste the time of the people trying to help you. I'm going to ask for this copy to be closed. Jeroen, we try to be nice to all our visitors, ...

8. Applying reflection on jar files    coderanch.com

You can use reflection on anything on your classpath, it doesn't matter if it's packaged in a classfile. I do not think there's a way to influence the classpath of an application once it's loaded, so you may be unable to load a jar into your application and analyse it. Maybe System.setProperty() can be used to append it to the classpath ...