The Java Virtual Machine (JVM) and other applications use the CLASSPATH environment variable to locate user-defined classes. User should ensure that CLASSPATH points to the location of the MonarchCharts JAR file (mcharts.jar). There is no need to extract JAR archive to develop with MonarchCharts product.
Assuming that MonarchCharts is installed on that directory which is in the table, in the event of setting CLASSPATH variable, the following commands might be used:
| OS | Installation directory | Command |
|---|---|---|
| Windows | C:\MCHARTS\ | set PATH=C:\MCHARTS\lib\;%PATH% |
| Linux | /opt/MCHARTS/ | export PATH=”/opt/MCHARTS/lib/:$PATH” |
| OS X | /Users/MCHARTS/ | export CLASSPATH=.:/Users/MCHARTS/lib/:$CLASSPATH |
Table 2.4.1 Setting CLASSPATHS for various OS