This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]