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.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Take Action Automatically on Splunk Alerts with Red Hat Ansible Automation Platform

 Are you ready to revolutionize your IT operations? As digital transformation accelerates, the demand for ...

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...

Beyond Detection: How Splunk and Cisco Integrated Security Platforms Transform ...

Financial services organizations face an impossible equation: maintain 99.9% uptime for mission-critical ...