### Preparations for calling the Engine Bean

Before calling the Engine Bean, you must make sure that:

- Since the only archive file for Report Engine Bean is JREngine.jar. You will need to set the class path environment variable before you can compile and run the program. Append the following string to the class path:

  `<install_root>\lib\JREngine.jar`;`<install_root>\lib\log4j-1.2.8.jar.`

- Before you call the methods for exporting a report to Mail, PDF, Excel or XML format, you first have to add the corresponding class files or jars with a valid path into your class path.
  - Mail: mail.jar and activation.jar
  - PDF: Itext.zip
  - Excel: poiHSSF_151.jar
  - XML: xml-apis.jar and xercesImpl.jar
- When you set the reporthome in the Engine Bean, JReport will retrieve information from the file report.ini in `<install_root>\bin` and then check whether it is valid by setting a runtime key in the bean. If you then open report.ini, you will find that the configuration information, including the temporary path, template path and the help path. JReport Engine Bean uses the temporary path to export temporary files. You should therefore make sure that the temporary folder specified in report.ini exists.