Here's what you need to get going with the Splunk SDK for Java.
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.
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.
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).
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:
For more, see "Installing Apache Ant" (http://ant.apache.org/manual/install.html)