Requirements

Here's what you need to get going with the Splunk SDK for Java.

Splunk

If you haven't already installed Splunk, download it here. For more about installing and running Splunk and system requirements, see the Splunk Installation Manual.

Splunk SDK for Java

Download the JAR and add it to your project. Or, get the Splunk SDK for Java—download the SDK as a ZIP, then extract the files and build the SDK.

Java

You'll need Java SE version 6 or higher, which you can download from the Oracle web site (http://www.oracle.com/technetwork/java/javase/downloads/index.html).

If you are using Windows, make sure the JAVA_HOME system variable is set to the directory where the JDK is installed.

For more, see "Java Platform Installation" (http://www.oracle.com/technetwork/java/javase/index-137561.html).

Ant

You'll also need Apache Ant, which you can download from the Apache website (http://ant.apache.org/bindownload.cgi).

If you are using Windows, make sure these system variables are correctly set:

  • ANT_HOME should be set to the location where Ant is installed.
  • PATH should include the path to the %ANT_HOME%\bin directory.

For more, see "Installing Apache Ant" (http://ant.apache.org/manual/install.html)