|
CLASSPATH, LD_LIBRARY_PATH and PATH VariablesIn most cases, the Chameleon installation program will correctly set up the CLASSPATH and PATH environmental variables. However, it is useful to know how these variables should be set for deployment purposes. Under windows, PATH variable must have the directory of Chameleon on it so that the CHM_JAVA.DLL file can be loaded. This forms the JNI bridge between Java and the C++ core of Chameleon. Under UNIX, the equivalent environmental variable is LD_LIBRARY_PATH, and the shared object libchm_java.so forms the bridge between java and the C++ core of Chameleon. Your CLASSPATH variables should allow Java to find the com.interfaceware.chameleon package and the generated stubcode package. Since the com.interfaceware.chameleon package is distributed in a JAR archive file called classes.jar in the java subdirectory off Chameleon, a typical setting for CLASSPATH would be ".;C:\Program Files\iNTERFACEWARE Chameleon\java\classes.jar" when using Windows. Note that the classes.jar file is stored in the package directory for Unix.
Locating the Java compiler and InterpreterChameleon looks on the standard PATH variable to find these. This should only happen when the wizard is used to generate an entire Chameleon project and is intended to allow new users to quickly get up to speed with Chameleon. It should not be necessary to consistently use the generate entire project option. |