argv[0]

Fabio Roger fabioroger@gmail.com
Mon Apr 25 06:17:00 GMT 2005


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.
> 



More information about the Java mailing list