All Apps and Add-ons
Highlighted

Splunk DB Connect and JDK

Path Finder

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 JAVAHOME 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 JAVAHOME and then changed to the DB connect JAVAHOME 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 JAVAHOME - is it {jdkpath}/jre/bin , {jdkpath}/jre or simply {jdkpath}

Thanks/

0 Karma
Highlighted

Re: Splunk DB Connect and JDK

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 JAVAHOME=/usr/java/jdkversion/bin/java

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

0 Karma