### RMI demos

Here are some demo RMI programs that JReport provides. They are available in `<install_root>\help\server\en\samples`.

- RemoteAPIDemoPublishRpt.java
  A demo about publishing report sets. You can submit a schedule to export a report set to version, disk, or e-mail.
- RemoteAPIDemoRunAndExportReport.java
  A demo about running report sets and exporting report set results to other formats.
- RemoteAPIDemoRunReportWithTimeout.java
  A demo about the Large Report Manager. This demo runs a report set and marks it as a large report set by setting the timeout value, and then returns the large report set information.

Before running these demos, remember to do the following:

1. Modify the server.properties file in the `<install_root>\bin` directory to set the property server.rmiserver.enable to true.
2. Add `-Djrs.rmi.auth_file="%authFileName%"` to the command line that starts the required program.
3. You need to set the classpath environment variables. Append the following jar files to the classpath that compile and run applications which call the Server API:

   `<install_root>\lib\JRESServlets.jar;
   <install_root>\lib\JREngine.jar;
   <install_root>\lib\servlet.jar;
   <install_root>\lib\log4j-1.2.8.jar;
   <install_root>\lib\sac.jar;
   <install_root>\commons-codec-1.2.jar`