Environment Sets needed for GRW for Java

Use this procedure to verify that you have the minimum environment sets selected for your GRW for Java configuration.

Before you begin:
There are several environment sets needed for the GRW for Java configuration. If you have not modified the default selection provided by the Java configuration during installation, these will already be selected for you:
  • Reporting Template (latest version)
  • Java SDK
  • Report Writer (latest version)
  • Demo Java Database Connection
  • DB - SQLite
Use this procedure to verify that you have the correct environment sets selected. You will likely need to alter the database-related environment sets for your environment, to use a database other than the demo database.
Tip: It is recommended that you make a copy of database-specific environment sets, and alter the copy. This allows you to keep the original database-specific environment sets for use with the demo programs.
  1. In the Genero Configurations combobox, select Java.
    This combobox is located in the lower right-hand side of Genero Studio.
  2. Select Tools > Genero Configurations.
    The Genero Configuration Management dialog opens.
  3. At a minimum, select the following environment sets.
    Reporting Template (latest version)

    Only required for programs generated by the Business Application Modeler (BAM).

    This environment set includes the GSTSETUPDIR environment variable, which defines the directory where the BAM templates reside. In environments where multiple templates reside, you can only have one template path set.

    Java SDK

    This environment set defines where the Java software resides, and adds the Java executables path to the PATH environment variable.

    Report Writer (latest version)

    In addition to setting GREDIR, this environment set ensures that all necessary library files are made available. This includes gre.jar, where the Genero Report Writer APIs are defined.

    Demo Java Database Connection

    Only required for programs generated by the Business Application Modeler (BAM).

    This environment set is used in the code generated by the BAM to provide the details about the database.

    At installation, the included environment variables are set specific to the OrderReportJava demo application. For each new database you wish to connect to, create a copy of this environment set and change the environment variables to specify the details needed to connect to the database. The four environment variables are portable across databases.

    Database environment

    The environment set for the database must also be set, whether it be an IBM® Informix-specific set, an Oracle-specific set, and so on.

    For the sample reporting application, check the DB-SQLite environment set.

  4. Click OK until all dialogs close.