In relation to a generated Java program that runs outside of a J2EE environment, you can generate the run-time properties into a program properties file or code that file by hand. (The program properties file provides the kind of information that is available in the deployment descriptor, but the format of the properties is different.)
In a non-J2EE Java environment, properties can be specified in these two program properties files:
programName.properties
If a same-named property is set in both files, the property in the file named for the program is used.
Use of vgj.properties is especially appropriate when the first program of a run unit does not access a file or database but calls programs that do:
Neither file is mandatory, and simple programs do not need either one.
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.