- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
adriannicolicea
New Member
02-01-2019
01:28 AM
If you have an app/add-on running on Splunk that doesn't have the set JAVA_HOME path option, can you somehow manage to tweak the whole Splunk installation to look for it in a different directory than the system's default one?
I was thinking it may be possible to add a new line in splunk-launch.conf like JAVA_HOME=/path/
If this is possible, will this force the app/add-on to look for it where the launch.conf file points to?
1 Solution
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
chrisyounger

SplunkTrust
02-01-2019
01:32 AM
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
chrisyounger

SplunkTrust
02-01-2019
01:32 AM
Yes that should work fine.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
chrisyounger

SplunkTrust
02-01-2019
01:40 AM
I just tested setting JAVA_HOME in splunklaunch of my personal environment and it works as expected
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
adriannicolicea
New Member
02-01-2019
01:44 AM
How did you perform the test?
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
chrisyounger

SplunkTrust
02-01-2019
01:47 AM
I edited splunk-launch.conf to have the following contents:
SPLUNK_SERVER_NAME=Splunkd
JAVA_HOME=/opt/java
# Splunkweb daemon name
SPLUNK_WEB_NAME=splunkweb
I then restarted splunk. And I made splunk run a script ran the env
command.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
adriannicolicea
New Member
02-01-2019
01:56 AM
Thank you!
