Determining the Main Class



Is there a way to determine (maybe through reflection or something?)
where a Java application is being run from (what class contains the
main method)?

Thanks
.