Passing system properties in from the command line

Anthony Green green@redhat.com
Thu Jun 21 14:07:00 GMT 2001


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

AG



More information about the Java mailing list