I want to run a JAR file from my own main(). Let's say I have an A class which has a main() method. The main() method of A will run a new main() method in another file B.jar.
This is how I run the B.jar file from main() method of A.jar: here.
The problem is that I do not have access to the B.jar Java source code. What I need to know is how many threads are running in the B.jar main() method.
There was another discussion here about getting the list of all Threads running in a Java application here.
Now what I need is a list of the threads which are spawned by B.jar. Or at least an array of the Thread IDs.