Reading command line parameters in gcj compiled exe

Andrew Haley
Fri Jan 23 16:54:00 GMT 2009

Jary Grove wrote:
> I have natively compiled an application using gcj compiler, how can I pass/read the command line parameters in the main java class?
> For example my command line with parameters is  tools.exe param1 param2

It's the same as usual; you have a method in your main class that
takes the args:

  public static void main(String[] args)


More information about the Java mailing list