This is the mail archive of the
java-discuss@sources.redhat.com
mailing list for the Java project.
Re: Java properties
- To: "Andrew Zahra" <andzahra at nortelnetworks dot com>
- Subject: Re: Java properties
- From: Tom Tromey <tromey at cygnus dot com>
- Date: Thu, 20 Jul 2000 16:12:04 -0700 (PDT)
- Cc: java-discuss at sources dot redhat dot com, "Justin Urbanski" <urbanski at nortelnetworks dot com>, "Peter Nicholson" <nichol at nortelnetworks dot com>, "Ramkumar Balasubramanyam" <rammb at nortelnetworks dot com>
- References: <4E37592BCD3BD41192CD0000F803957CD9266D@zctwb003.asiapac.nortel.com>
Andrew> When using a jvm, properties can be specified to the jvm, e.g
Andrew> java -Dmyproperty=foo MyApp arg1 arg2
Andrew> This will set myproperty such that MyApp can retrieve it
Andrew> during execution.
Andrew> Is there some way to set properties at runtime for executables
Andrew> built with gcj?
Yes. You can do something like this:
gcj -Dmyproperty=foo --main=... -o program *.o
The -D option is only recognized at link time.
Tom