Skip to main content

Developing with XCC

Setting Up Your Java Environment

If you are using XCC/J, you must have Java installed on your client machine. You must also follow these steps to set up your environment to run the sample applications:

  1. Set your JAVA_HOME environment variable, if it is not already set. For example, if you are running a Windows machine, set JAVA_HOME in a command window like this: set JAVA_HOME=c:\Sun\SDK\jdk

  2. Substitute the directory in which Java is installed in your environment.

  3. Set your CLASSPATH environment variable correctly, or use the -classpath option to pass the appropriate classpath on the command line. Make sure to use the correct name for the marklogic-xcc-N.jar file in your CLASSPATH, where N corresponds to the service release version number.