I need to write a program where I can track the way how methods are called. So , i'm trying to use invokestatic, invokevirtual , invokeinterface , invokespecial to track the method calls and follow up.
To do that , I have to input the result of (javap -c sample) [sample is the class] to the program.
So my question is that , is it possible rather than inputting the resultant file of (javap -c sample) , just to input the class name as sample , then the program can create a file executing javap inside the program and output the result to a particular file , and the rest of the program can be executed as usual.?