This is the mail archive of the java-discuss@sources.redhat.com 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: Java properties


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

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