How to Set Catalog and Report Paths in JReport Server

There are several ways of setting the catalog and report paths.

  1. Use the server GUI interface. You can either key in the path you desire in the textfield labelled as "Report Initial Path:" or use the directory browser by clicking the "Dir" button behind the textfield.
  1. Manually change the file server.properties, which is located in the directory where JReport Server was installed.  Open the file with a text editor and search for
    "http.report.initdir", key in the proper path after the equal sign (=), e.g.

    http.report.initdir=C:\JRServer\jreports
  1. Use Java APIThe method setProp in jet.server.ServerThread can be used for this purpose, the following line set the path to "C:\JRServer\jreports":

    setProp("http.report.initdir", "C:\JRServer\jreports");