Is there any way to find the name of the main class used to launch the current JVM, from arbitrary code running in that JVM?
By arbitrary, I mean that the code ...
Hi Folks, I would like to dynamically retrieve the class name of the main class which was invoked. Lets say my class name is HelloWorld. I run it using java HelloWorld Now I need to dynamically retrieve the Classname (HelloWorld) using a java program. Can any please let me know how to achieve it. Regards, PA