Splunk Enterprise

Unable to initialize modular input "server" defined in the app "splunk_app_db_connect": Introspecting scheme=server: scr

Gagandeep
Explorer

Windows server 2022

I have tried installing JRE24 and Java 8. It doesn't let me save the JAVA_HOME path. 

Throw below error:-

FileNotFoundError: [WinError 2] The system cannot find the file specified validate java command: java.

 

Any help would be appreciated!!!!

 

Labels (1)
0 Karma
1 Solution

PickleRick
SplunkTrust
SplunkTrust

Again - you are setting wrong path. Your JAVA_PATH should be c:\program files\java\jre_version

That's it. No \bin, no java.exe, no nothing. Just the base directory of your Java installation.

View solution in original post

Gagandeep
Explorer

Thanks for the response.

I actually installed both Java 21 and 24 but no luck. 

JRE path as C:\Program Files (x86)\Common Files\Oracle\Java\java8path\java.exe

Upon putting above path and click on save. Upon returning to the same page, the path is gone.

 

Gagandeep_0-1753486458278.png

 

Error remains there, 

FileNotFoundError: [WinError 2] The system cannot find the file specified validate java command: java.

 

Gagandeep_1-1753486519583.png

Gagandeep_2-1753486600605.png

 

0 Karma

PickleRick
SplunkTrust
SplunkTrust

You "have tried" to install JRE or did you install it?

The manual explicitly lists Java 17 and 21. It doesn't list 24 so it might work but is not officially supported.

And on Windows I'd defintiely go for

Option 3: Set JRE installation directory in Configuration > Settings > JRE Installation Path.

 https://help.splunk.com/en/splunk-cloud-platform/connect-relational-databases/deploy-and-use-splunk-...

0 Karma

livehybrid
SplunkTrust
SplunkTrust

Hi @Gagandeep 

In addition to what @PickleRick mentioned about version number - I believe you need to enter a path to JAVA_HOME not to the java.exe file.

I *think* the JAVA_HOME path for your install would be C:\Program Files (x86)\Common Files\Oracle\Java\java8path

but it could be 1 directory higher. Please try adjusting this and let us know how you get on.

🌟 Did this answer help you? If so, please consider:

  • Adding karma to show it was useful
  • Marking it as the solution if it resolved your issue
  • Commenting if you need any clarification

Your feedback encourages the volunteers in this community to continue contributing

Gagandeep
Explorer

It's still not working. Here are the screenshots.

Gagandeep_0-1753547269486.png

Note :- Upon adding the above JAVA_HOME path, it doesn't show any notification if saved or not. Upon refreshing the page, the path is no longer there.



 

Created new JAVA_HOME under Environment Variables but no luck.

Gagandeep_1-1753547387965.png

 

Gagandeep_2-1753547543971.png

Gagandeep_3-1753547566948.png

Gagandeep_4-1753547597984.png

 

 

0 Karma

PickleRick
SplunkTrust
SplunkTrust

Again - you are setting wrong path. Your JAVA_PATH should be c:\program files\java\jre_version

That's it. No \bin, no java.exe, no nothing. Just the base directory of your Java installation.

Gagandeep
Explorer

I am able to get it worked now.

Uninstalled java and installed JRE 17. During install allow JAVA_HOME path and used the same path under Configuration > Settings.

Thanks for sharing valuable inputs which made me try couple of different options.

Appreciated!!!! 

0 Karma

PickleRick
SplunkTrust
SplunkTrust

Yup. JAVA_HOME should be the base dir of Java installation.

See https://docs.oracle.com/cd/E19182-01/821-0917/inst_jdk_javahome_t/index.html for example

Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...