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]

RE: Passing system properties in from the command line


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


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