### Installing the Server API

When you install JReport Enterprise Server, JReport Server API is also installed at the same time. After installation, you will have the following components in `<install_root>\lib`:

- JRESServlets.jar
- JREngine.jar
- servlet.jar
- hsqldb.jar
- log4j-1.2.8.jar
- sac.jar
- commons-codec-1.2.jar

The Server API classes are stored in the archive file JRESServlets.jar.

You need to set the classpath environment variable. Append the following jar files to your 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`

Note: If you want to export reports to the following formats, you should add the corresponding class package or jar with a valid path to the class path:

- To e-mail or use the E-mail Notification function: activation-1.1.jar and mail-1.4.jar.
- To FTP: commons-net-ftp-2.0.0.jar.
- To PDF & DHTML: itext.jar.
- To Excel: poiHSSF_151.jar.
- To XML: xml-apis.jar and xercesImpl.jar.
- To DHTML: JRWebDesign.jar.