Silly Question: Equivalent of C argv[0] in GCJ?

Anthony Green green@redhat.com
Thu Oct 17 08:48:00 GMT 2002


On Thu, 2002-10-17 at 07:11, Ranjit Mathew wrote:
>      How does one get the name by which a program
> was invoked (argv[0] in C) in a GCJ created
> executable?

There is no way right now, but that seems like a good idea.

> I looked at the GCJ documentation and looked
> at all the properties returned by System.getProperties( )
> but nothing like this was there.

I think a patch to set a system property like "gnu.gcj.progname" would
be welcome.

AG




More information about the Java mailing list