This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
RE: Passing system properties in from the command line
- To: Anthony Green <green at redhat dot com>
- Subject: RE: Passing system properties in from the command line
- From: Warren Levy <warrenl at redhat dot com>
- Date: Thu, 21 Jun 2001 15:57:56 -0700 (PDT)
- cc: Weiqi Gao <weiqigao at yahoo dot com>, java at gcc dot gnu dot org
On Thu, 21 Jun 2001, Anthony Green wrote:
> Weiqi wrote:
> > For the Sun JDK, system properties can be passed in at
> > runtime using the 'java -Dname=value Foo' command
> > line.
> >
> > What is the equivalent for a gcj compiled executable?
>
> Set the GCJ_PROPERTIES environment variable.
>
> $ GCJ_PROPERTIES="name=value" Foo
Additionally, if you only want to set the property at compile time rather
than at runtime (yes, I know that's different than the original question),
you could pass the same -Dname=value sequence on the compiler command line.
--warrenl