This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: argv[0]
thanks!
On Mon, 2005-04-25 at 11:12 +0530, Ranjit Mathew wrote:
> 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.
>