Skip to main content

Installing MarkLogic Server

Java Virtual Machine Requirements

MarkLogic Server can function with or without a Java Virtual Machine (JVM). The only requirement needed for a JVM to be installed on MarkLogic Server would be if you use HDFS (Hadoop Distributed File System).

Our provided Amazon AMIs have a JDK pre-installed that is used during the MarkLogic bootstrap process to setup and configure MarkLogic in the Amazon environment. Therefore, you do not need to install a JVM on any EC2 instance.

The following MarkLogic products and features require a JVM to either run or install:

MarkLogic supports the Java 8, 9, 10, and 11 versions of the following JVMs:

  • Oracle/Sun

  • OpenJDK


The IBM JRE is not supported.

By default, MarkLogic looks for Java in the location specified via the JAVA_HOME environment variable or in a specific set of default locations. If JAVA_HOME is not set in the startup environment, MarkLogic uses the first JRE or JDK found in one of the following locations. These locations are searched in the order listed.

  • /usr/java/default

  • /usr/java/latest

  • /usr/java/jdk1.N*

*where N is a supported Java version. For example, /user/java/jdk1.8.0_202.

  • /usr/lib/jvm/java

  • /usr/lib/jvm/java-openjdk

  • /usr/lib/jvm/jre-1.N.0-*.x86_64

*where N is a supported Java version, such as Java 8.

If you have Java installed in a different location, you can communicate your JAVA_HOME to MarkLogic through the file /etc/marklogic.conf. For example:

cat > /etc/marklogic.conf
export JAVA_HOME=/path/to/your/jdk