Skip to main content

Developing with XCC

HelloWorld

This program runs a query on MarkLogic Server that returns the string Hello World. The following is a sample command to run the HelloWorld class:

java -classpath "XCC_HOME/lib/xcc.jar:XCC_HOME/lib/xccexamples.jar"
     com.marklogic.xcc.examples.HelloWorld 
     xcc://username:password@localhost:8021