Java properties

Tom Tromey tromey@cygnus.com
Thu Jul 20 16:12:00 GMT 2000


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


More information about the Java mailing list