This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Reading command line parameters in gcj compiled exe
- From: Andrew Haley <aph at redhat dot com>
- To: Jary Grove <jarygrove at yahoo dot com>
- Cc: java at gcc dot gnu dot org
- Date: Fri, 23 Jan 2009 16:54:13 +0000
- Subject: Re: Reading command line parameters in gcj compiled exe
- References: <402500.95756.qm@web110004.mail.gq1.yahoo.com>
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)
Andrew.