All Apps and Add-ons

SPLUNK DB Connect (3.3.1) Setup: JRE Installation Path(JAVA_HOME)

richerma
Explorer

Hi,

Having a hard time setting up the JRE Installation Path(JAVA_HOME). Please note that to the best of my knowledge, my java path is "C:\ProgramData\Oracle\Java\javapath" and this is a result from running the command "where java" in cmd (windows 10).

Splunk version 8.0.5 (local computer, pending trial for production)

DB Connect App version 3.3.1

JDK installed: 11.0.8

Error description: depends on how its written

  1.  Entering  exactly C:\ProgramData\Oracle\Java\javapath yields the error 'str' object has no attribute 'decode'
  2. Entering "C:\ProgramData\Oracle\Java\javapath" with quotation marks yields the error JAVA_HOME path not exist

Am I heading the right way? that folder does contain java.exe

 

Labels (1)
Tags (1)
0 Karma
1 Solution

thambisetty
SplunkTrust
SplunkTrust

which package did you download from the link I have shared.

Did you download zip or exe?

I have download zip and extracted to 

C:\Users\thambisetty\Downloads\java-11\jre
under above I got below directory 

jre1.8.0_261

the above directory contains bin

so your path in db connect app should be like below:

C:\Users\thambisetty\Downloads\java-11\jre\jre1.8.0_261

Note: dont add bin end to above path and setting up java_home is also not required.

if you get error str object no attribute decode, thats fine restart splunk service. You will be okay.

————————————
If this helps, give a like below.

View solution in original post

thambisetty
SplunkTrust
SplunkTrust

Can you take a screenshot of DB CONNNECTIONS SETTINGS and post it here.

————————————
If this helps, give a like below.
0 Karma

richerma
Explorer

Sure thing:

richerma_0-1596819398722.png

 

0 Karma

thambisetty
SplunkTrust
SplunkTrust

you need jre some of JDKs don't have jre in it.

Download jre8 from here : https://www.oracle.com/java/technologies/javase-jre8-downloads.html 

Note: you should have oracle account.

Path should be like below:

C:\Users\thambisetty\Downloads\java-11\jre\jre1.8.0_261

if you get an error saying str object no attribute to decode thats fine , just restart the splunk.

————————————
If this helps, give a like below.
0 Karma

thambisetty
SplunkTrust
SplunkTrust

Upvote is appreciated if my solution works.

————————————
If this helps, give a like below.
0 Karma

richerma
Explorer

Didn't work.

  1. installed the JRE link you sent
  2. entering C:\Users\thambisetty\Documents\JAVA\bin  (replaced with actual user on machine) gives the usual 'str' object has no attribute 'decode' error. Entering "C:\Users\thambisetty\Documents\JAVA\bin" with quotations gives the usual JAVA_HOME path not exist error.
  3. I am far from being a java expert, but see below more info on it. I had to create the environment variable manually, but that did not fix the issue.

Untitled2.pngUntitled1.pngUntitled.png

0 Karma

thambisetty
SplunkTrust
SplunkTrust

which package did you download from the link I have shared.

Did you download zip or exe?

I have download zip and extracted to 

C:\Users\thambisetty\Downloads\java-11\jre
under above I got below directory 

jre1.8.0_261

the above directory contains bin

so your path in db connect app should be like below:

C:\Users\thambisetty\Downloads\java-11\jre\jre1.8.0_261

Note: dont add bin end to above path and setting up java_home is also not required.

if you get error str object no attribute decode, thats fine restart splunk service. You will be okay.

————————————
If this helps, give a like below.

richerma
Explorer

Solution: do not point to bin folder, but rather the folder before.

 

Thank you so much

0 Karma
Get Updates on the Splunk Community!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...