Situation Hi, I have 2 problems. The situation is that I'm writing a Java API for Windows that also provides tools for injecting code into a process and then manipulate the target. I have already implemented the injection-part , for example injecting a jar into another jar. At this point my jar gets called (while the target already is at runtime) and starts in a complete static context . Goals & problems From here I have two goals: I'd like to interact with the targets objects , thus I need references . For many objects this is already possible because they provide static access to their