When you install JReport Server, JReport Server API is also installed at the same time. After installation, you will have the following files:
<install_root>\lib
:
<install_root>\derby\lib
:
The Server API classes are stored in the archive file JRESServlets.jar.
When you install JReport Designer, the libraries for JReport Server can also be found in <designer_install_root>\server\lib
since JReport Designer includes a full JReport Server for previewing reports.
If you are calling the Server API directly in the same JVM as JReport Server, you need to set the classpath environment variable to the local versions of the classes. Append the following jar files to your class path 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\hsqldb.jar; <install_root>\lib\log4j-1.2.8.jar; <install_root>\lib\sac.jar; <install_root>\lib\commons-codec-1.2.jar; <install_root>\lib\commons-logging-1.1.jar; <install_root>\lib\quartz-all-1.6.5.jar; <install_root>\derby\lib\derby.jar; <install_root>\derby\lib\derbyclient.jar; <install_root>\derby\lib\derbynet.ja; <install_root>\derby\lib\derbytools.jar;
If you are calling the Server API using RMI from a different JVM or different server than where JReport Server is running, you need to set the classpath environment variable to the remote libraries. Append the following jar files to your class path that compile and run applications which call the Server API:
<install_root>\lib\JRSRMI.jar; <install_root>\lib\servlet.jar; <install_root>\lib\hsqldb.jar; <install_root>\lib\log4j-1.2.8.jar; <install_root>\lib\sac.jar; <install_root>\lib\commons-codec-1.2.jar; <install_root>\lib\commons-logging-1.1.jar; <install_root>\lib\quartz-all-1.6.5.jar;
Notes: