<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Can the DB Connect Java_home variable use wildcards in the path? in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/Can-the-DB-Connect-Java-home-variable-use-wildcards-in-the-path/m-p/118495#M22935</link>
    <description>&lt;P&gt;The usual way is to have a symlink that points to whatever your current java versioned directory is, and have that symlink path in the &lt;CODE&gt;JAVA_HOME&lt;/CODE&gt; variable. When you update java you update the symlink when finished.&lt;/P&gt;</description>
    <pubDate>Sun, 16 Nov 2014 00:16:12 GMT</pubDate>
    <dc:creator>martin_mueller</dc:creator>
    <dc:date>2014-11-16T00:16:12Z</dc:date>
    <item>
      <title>Can the DB Connect Java_home variable use wildcards in the path?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Can-the-DB-Connect-Java-home-variable-use-wildcards-in-the-path/m-p/118494#M22934</link>
      <description>&lt;P&gt;According to the documentation here &lt;A href="http://docs.splunk.com/Documentation/DBX/1.1.5/DeployDBX/Installtheconnector" target="_blank"&gt;http://docs.splunk.com/Documentation/DBX/1.1.5/DeployDBX/Installtheconnector&lt;/A&gt;&lt;BR /&gt;
the JAVA_HOME path needs to be set, like this echo $JAVA_HOME to see the path, such as,  "/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre"&lt;/P&gt;

&lt;P&gt;But having recently upgraded JAVA due to standard patching, my new path was "/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.71-2.5.3.1.el7_0.x86_64/jre” &lt;/P&gt;

&lt;P&gt;Is there any way to add a wildcard path in the config for the attribute home, located at $SPLUNK_HOME/etc/apps/dbx/local/java.conf?&lt;/P&gt;

&lt;P&gt;[java]&lt;BR /&gt;
home = JAVA_HOME path&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:09:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Can-the-DB-Connect-Java-home-variable-use-wildcards-in-the-path/m-p/118494#M22934</guid>
      <dc:creator>mcronkrite</dc:creator>
      <dc:date>2020-09-28T18:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: Can the DB Connect Java_home variable use wildcards in the path?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Can-the-DB-Connect-Java-home-variable-use-wildcards-in-the-path/m-p/118495#M22935</link>
      <description>&lt;P&gt;The usual way is to have a symlink that points to whatever your current java versioned directory is, and have that symlink path in the &lt;CODE&gt;JAVA_HOME&lt;/CODE&gt; variable. When you update java you update the symlink when finished.&lt;/P&gt;</description>
      <pubDate>Sun, 16 Nov 2014 00:16:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Can-the-DB-Connect-Java-home-variable-use-wildcards-in-the-path/m-p/118495#M22935</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-11-16T00:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: Can the DB Connect Java_home variable use wildcards in the path?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Can-the-DB-Connect-Java-home-variable-use-wildcards-in-the-path/m-p/118496#M22936</link>
      <description>&lt;P&gt;To reiterate what @martin_mueller said:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;typically NO path statement takes wildcards&lt;/LI&gt;
&lt;LI&gt;typically you'll need a symlink to point to the correct one&lt;/LI&gt;
&lt;LI&gt;you're on Enterprise Linux: you'll have the links managed for you when you install the proper package,&lt;/LI&gt;
&lt;LI&gt;your JAVA_HOME is just /usr/lib/jvm/jre and it never changes&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;so, simply&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;install -m755 &amp;lt;(echo export JAVA_HOME=/usr/lib/jvm/jre) /etc/profile.d/javahome.sh
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;.. and you're done.  &lt;/P&gt;

&lt;P&gt;Extra credit:  add that into the RPM you use to pull in the JRE, but remember that we don't have a yum repo yet so don't link in db-connect as a dependency if you do.  &lt;/P&gt;

&lt;P&gt;(Check out &lt;A href="https://answers.splunk.com/answers/33933"&gt;https://answers.splunk.com/answers/33933&lt;/A&gt; for the trivial repo question; it shouldn't be long, now)&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 16:30:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Can-the-DB-Connect-Java-home-variable-use-wildcards-in-the-path/m-p/118496#M22936</guid>
      <dc:creator>bishopolis</dc:creator>
      <dc:date>2018-11-27T16:30:31Z</dc:date>
    </item>
  </channel>
</rss>

