This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: argv[0]
- From: Ranjit Mathew <rmathew at gmail dot com>
- To: Fabio Roger <fabioroger at gmail dot com>
- Cc: java at gcc dot gnu dot org
- Date: Mon, 25 Apr 2005 11:12:10 +0530
- Subject: Re: argv[0]
- References: <1114392850.5160.5.camel@localhost>
Fabio Roger wrote:
> hi, quick question, in C, the argv[0] in main(int, char**argv) would
> tell running program path.. what would be the way of getting that
> information in a java program natively compiled with gcj?
System.getProperty( "gnu.gcj.progname");
See:
http://gcc.gnu.org/onlinedocs/gcj/libgcj-Runtime-Properties.html
HTH,
Ranjit.
--
Ranjit Mathew Email: rmathew AT gmail DOT com
Bangalore, INDIA. Web: http://ranjitmathew.hostingzero.com/