Fwd: How to get the "main" class?

David Holmes david.holmes at oracle.com
Wed Mar 14 03:49:03 PDT 2012


On 14/03/2012 7:56 PM, Krystal Mok wrote:
> That's true. I should have stated that warning beforehand.
> It'd be better if there's a standard way of getting this information,
> without depending on implementation-specific hacks.

But as I said the whole concept of there even being a "main class" is a 
feature of the launcher. So any mechanism for retrieving it has to be 
launcher specific.

David

> Thanks,
> - Kris
>
> On Wed, Mar 14, 2012 at 5:51 PM, Alan Bateman <Alan.Bateman at oracle.com
> <mailto:Alan.Bateman at oracle.com>> wrote:
>
>     On 14/03/2012 04:14, Krystal Mok wrote:
>
>         Oops, I forgot to "reply all" again...
>
>     I would think that depending on sun.java.command is going to
>     fragile. It's unlikely to be set by custom launchers, is a private
>     interface between the launcher and the VM and so could disappear to
>     change at any time.
>
>     -Alan
>
>


More information about the hotspot-runtime-dev mailing list