How to: |
There are multiple sample applications provided for various functions. Seven batch files are provided to assist in running these applications. The batch files are named according to function and run the associated User, Address Book, Library Access List, Schedule, Console, Log, and Library functions.
Each of these batch files reference a batch file named environment.bat, which will set environment specific settings, such as the location of the Java executable and the classpath. In order to run these batch files, this will need to be configured in a similar fashion as SamplesComp.bat.
Below are the contents of environment.bat
set JAVA_RUN=[JVMpath] set CLASSPATH=.(local dir);..\(parent dir);[jarpath];[JDBC Classpath]; [root]:\MSJDBC\lib\msutil.jar)];
where:
Is the path to the javac executable associated with your JVM. For example, the JVMpath might be C:\Program Files\Java\jdk1.5.0_09\bin\java
Is the path to the ReportCaster Jar Files. The classpath.bat file contains the path to the ReportCaster Jar Files. For example, your path might be C:\ibi\WebFOCUS77\ReportCaster\reportcaster.jar;.
Note: The jarpath included with the API samples and used in the examples, points to reportcaster.jar in the lib directory of the Distribution Server. This directory contains all of the other necessary jar files to enable the ReportCaster API to work with WebFOCUS. You can also point to reportcaster.jar in the WEB-INF directory on the application server. You may need to modify the classpath to include other jar files. If your API application does not have access to these directories you must include reportcaster.jar and the other jar files in your application.
Is the classpath of your JDBC driver. For example, for example, C:\MSJDBC\lib\msbase.jar;C:\MSJDBC\lib\mssqlserver.jar
Note: The classpath contains the following, .;..\ This allows the application to search the local directory. This is necessary in order to find the samples.properties file.
WebFOCUS |