All Apps and Add-ons

Splunk DB Connect and JDK

kmower
Communicator

Hi guys,

I have installed DB connect successfully using the JRE some time ago. The trick is that you have to have Java installed, and JAVA_HOME installed before you install DB Connect for the first time (clean install). Otherwise, the install would not work.

Fast Forward to now, and I needed to install the JDK on my server for another piece of software. I installed it, and reset JAVA_HOME and then changed to the DB connect JAVA_HOME path. It did not work. Now, I can do a clean install, that doesn't bother me, but I wanted to know from Splunk if:

  1. Splunk DB Connect will work with the JDK and not just the JRE; and
  2. What is the path I should use for the Splunk JAVA_HOME - is it {jdk_path}/jre/bin , {jdk_path}/jre or simply {jdk_path}

Thanks/

0 Karma

ivanreis
Builder

Answering your questions:
1 - I don't know why, but the most recent version of the DB connect just work properly with JDK
2 - you can try https://www.cyberciti.biz/faq/linux-unix-set-java_home-path-variable/ . The properly path configuration should relying on the linux bash you are running to, but I believe can be similar with :

export JAVA_HOME=/usr/java/jdk_version/bin/java

export PATH=$PATH:/usr/java/jdk_version/bin

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...