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: argv[0]


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/


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