When you install JReport Designer, which by default is located in C:\JReport\Designer
, the Catalog API is also installed at the same time. After installation, you will have the following components in <install_root>\lib
:
The Catalog API class is stored in the archive file report.jar. You will need to do the two steps below before you can compile and run the program:
<install_root>\lib\report.jar;<install_root>\lib\sac.jar;<install_root>\lib\JREngine.jar;<install_root>\lib\log4j-1.2.8.jar
DesignerUserInfo userInfo=new DesignerUserInfo("UID","Design API Key");
JReport Server also includes the Catalog API. If you prefer to use the libraries from JReport Server include the jar file <server_install_root>\lib\JRESServlets.jar in your class path instead of report.jar. You would then need to use the Server Design API license key rather than the Design API license key.