This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Silly Question: Equivalent of C argv[0] in GCJ?
- From: Anthony Green <green at redhat dot com>
- To: Ranjit Mathew <rmathew at hotmail dot com>
- Cc: java at gcc dot gnu dot org
- Date: 17 Oct 2002 08:47:54 -0700
- Subject: Re: Silly Question: Equivalent of C argv[0] in GCJ?
- References: <aomgb3$g2t$1@main.gmane.org>
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