Detect main class
<p>Hoe can I detect the main class of my application? The one, which is either given on the command line or loaded from the jar given at the command line? </p>

<p>If this is not possible, why not?</p>

<p>EDIT: Maybe I wasn't clear. I know there always can be many entry points into my app, but while the app is running, there was only one entry point used to start the current JVM. This is the one I need to know of.</p>
