so suppose I have a java package....
it\'s got the main class with the main method
and then it\'s got a whole bunch of other classes.....
my question
If you don't care about OS portability, read /proc/self/cmdline or the equivalent for your OS.
/proc/self/cmdline
See http://en.wikipedia.org/wiki/Procfs