You are provided with a sample program that demonstrates how to use the Catalog API to create or modify a catalog - TestCatalogAPI.java that is located in <install_root>\help\samples\APICatalog
.
To compile and run the demo program, you should add the required classes to the class path (make sure that the path of the file JREngine.jar is before that of the file report.jar).
After running the program, a new catalog file MyReports.cat will be created in C:\JReport\Designer\Demo\MyReports
. Be sure to create this empty directory first.
C:\JReport\Designer\help\samples\APICatalog>javac -classpath "C:\JReport\Designer\lib\JREngine.jar;C:\JReport\Designer\lib\sac-1.3.jar;C:\JReport\Designer\lib\report.jar;C:\JReport\Designer\lib\log4j-core-2.7.jar;C:\JReport\Designer\lib\log4j-api-2.7.jar;C:\test\classes" TestCatalogAPI.java
C:\JReport\Designer\help\samples\APICatalog>java -classpath "C:\JReport\Designer\lib\jrengine.jar;C:\JReport\Designer\lib\sac-1.3.jar;C:\JReport\Designer\lib\report.jar;C:\JReport\Designer\lib\log4j-core-2.7.jar;C:\JReport\Designer\lib\log4j-api-2.7.jar;C:\JReport\Designer\help;C:\test\classes" -Dreporthome=C:\JReport\Designer TestCatalogAPI -path=C:\JReport\Designer\Demo\MyReports -catalog=MyReports.cat -log=C:\JReport\Designer\logs\designer.log