argv[0]

Ranjit Mathew rmathew@gmail.com
Mon Apr 25 05:42:00 GMT 2005


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/


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /