<?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: SA-ldapsearch - NameError: name 'JAVA_HOME' is not defined in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/SA-ldapsearch-NameError-name-JAVA-HOME-is-not-defined/m-p/85522#M5503</link>
    <description>&lt;P&gt;Did you restarted machine in order to guarantee that Windows will get the new env variable definition?&lt;/P&gt;</description>
    <pubDate>Thu, 04 Jul 2013 22:56:16 GMT</pubDate>
    <dc:creator>wagnerbianchi</dc:creator>
    <dc:date>2013-07-04T22:56:16Z</dc:date>
    <item>
      <title>SA-ldapsearch - NameError: name 'JAVA_HOME' is not defined</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/SA-ldapsearch-NameError-name-JAVA-HOME-is-not-defined/m-p/85521#M5502</link>
      <description>&lt;P&gt;I am trying to install SA-ldapsearch on my Win2008R2 search head. I installed the Server JRE and then defined JAVA_HOME=C:\Program Files\jdk1.7.0_25 and added C:\Program Files\jdk1.7.0_25\bin to the path. I restarted Splunk, but still when I try to use any of the ldap searches I get the following error: NameError: name 'JAVA_HOME' is not defined.&lt;/P&gt;

&lt;P&gt;Anyone has an idea what's wrong?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:15:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/SA-ldapsearch-NameError-name-JAVA-HOME-is-not-defined/m-p/85521#M5502</guid>
      <dc:creator>abpe</dc:creator>
      <dc:date>2020-09-28T14:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: SA-ldapsearch - NameError: name 'JAVA_HOME' is not defined</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/SA-ldapsearch-NameError-name-JAVA-HOME-is-not-defined/m-p/85522#M5503</link>
      <description>&lt;P&gt;Did you restarted machine in order to guarantee that Windows will get the new env variable definition?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2013 22:56:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/SA-ldapsearch-NameError-name-JAVA-HOME-is-not-defined/m-p/85522#M5503</guid>
      <dc:creator>wagnerbianchi</dc:creator>
      <dc:date>2013-07-04T22:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: SA-ldapsearch - NameError: name 'JAVA_HOME' is not defined</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/SA-ldapsearch-NameError-name-JAVA-HOME-is-not-defined/m-p/85523#M5504</link>
      <description>&lt;P&gt;try run-&amp;gt; cmd&lt;/P&gt;

&lt;P&gt;set JAVA_HOME=C:\Program Files\jdk1.7.0_25&lt;/P&gt;

&lt;P&gt;that will do the job&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:15:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/SA-ldapsearch-NameError-name-JAVA-HOME-is-not-defined/m-p/85523#M5504</guid>
      <dc:creator>linu1988</dc:creator>
      <dc:date>2020-09-28T14:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: SA-ldapsearch - NameError: name 'JAVA_HOME' is not defined</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/SA-ldapsearch-NameError-name-JAVA-HOME-is-not-defined/m-p/85524#M5505</link>
      <description>&lt;P&gt;It didn't work. &lt;BR /&gt;
Anyway when I type set in cmd I see the JAVA_HOME variable defined.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2013 07:43:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/SA-ldapsearch-NameError-name-JAVA-HOME-is-not-defined/m-p/85524#M5505</guid>
      <dc:creator>abpe</dc:creator>
      <dc:date>2013-07-05T07:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: SA-ldapsearch - NameError: name 'JAVA_HOME' is not defined</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/SA-ldapsearch-NameError-name-JAVA-HOME-is-not-defined/m-p/85525#M5506</link>
      <description>&lt;P&gt;I did, still doesn't work.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2013 07:44:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/SA-ldapsearch-NameError-name-JAVA-HOME-is-not-defined/m-p/85525#M5506</guid>
      <dc:creator>abpe</dc:creator>
      <dc:date>2013-07-05T07:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: SA-ldapsearch - NameError: name 'JAVA_HOME' is not defined</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/SA-ldapsearch-NameError-name-JAVA-HOME-is-not-defined/m-p/85526#M5507</link>
      <description>&lt;P&gt;Which version it is? 64-bit/32-bit? Delete the existing JAVA_HOME variable. set JAVA_HOME=C:\Progra~1\Java\jdk1.7.0_25 then check.. because i has the same issue setting up Java_Home.&lt;/P&gt;

&lt;P&gt;and where did you install in program files / program files//Java directory?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:15:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/SA-ldapsearch-NameError-name-JAVA-HOME-is-not-defined/m-p/85526#M5507</guid>
      <dc:creator>linu1988</dc:creator>
      <dc:date>2020-09-28T14:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: SA-ldapsearch - NameError: name 'JAVA_HOME' is not defined</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/SA-ldapsearch-NameError-name-JAVA-HOME-is-not-defined/m-p/85527#M5508</link>
      <description>&lt;P&gt;It's the Server JRE version, it's a Win-x64 tar.gz, which I just extracted to c:\program files\jdk1.7.0_25.&lt;BR /&gt;
I tried your suggestion with removing the JAVA_HOME and do the set, but still the issue remains. Are there any logs, I can take a look at, to see what's wrong?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:15:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/SA-ldapsearch-NameError-name-JAVA-HOME-is-not-defined/m-p/85527#M5508</guid>
      <dc:creator>abpe</dc:creator>
      <dc:date>2020-09-28T14:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: SA-ldapsearch - NameError: name 'JAVA_HOME' is not defined</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/SA-ldapsearch-NameError-name-JAVA-HOME-is-not-defined/m-p/85528#M5509</link>
      <description>&lt;P&gt;Please don't extract it, Do a installation in the default folder. I think JVM is not installed properly. I did some research and i found that in the python files we have paths as C:\Program files(x86)\Java\jdk6/jre6 mentioned by default or it will search for the environment variable. I would urge you to remove the existing folder and delete the env variable. Do a fresh installation with jdk-7u25-windows-x64.exe, then set the environment variable. It should work perfectly.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2013 09:03:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/SA-ldapsearch-NameError-name-JAVA-HOME-is-not-defined/m-p/85528#M5509</guid>
      <dc:creator>linu1988</dc:creator>
      <dc:date>2013-07-05T09:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: SA-ldapsearch - NameError: name 'JAVA_HOME' is not defined</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/SA-ldapsearch-NameError-name-JAVA-HOME-is-not-defined/m-p/85529#M5510</link>
      <description>&lt;P&gt;Thanks, the issue is, that for security reasons I don't want to install the jdk-7u25-windows-x64.exe but would like to use the server version here: &lt;A href="http://www.oracle.com/technetwork/java/javase/downloads/server-jre7-downloads-1931105.html"&gt;http://www.oracle.com/technetwork/java/javase/downloads/server-jre7-downloads-1931105.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2013 10:09:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/SA-ldapsearch-NameError-name-JAVA-HOME-is-not-defined/m-p/85529#M5510</guid>
      <dc:creator>abpe</dc:creator>
      <dc:date>2013-07-05T10:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: SA-ldapsearch - NameError: name 'JAVA_HOME' is not defined</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/SA-ldapsearch-NameError-name-JAVA-HOME-is-not-defined/m-p/85530#M5511</link>
      <description>&lt;P&gt;Thanks for your support, I took a look at the python files and I saw, that it actually searches the windows registry for JAVA_HOME, so I created the necessary entries in HKLM:SOFTWARE\JavaSoft\Java Runtime Environment. Now it works.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2013 11:10:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/SA-ldapsearch-NameError-name-JAVA-HOME-is-not-defined/m-p/85530#M5511</guid>
      <dc:creator>abpe</dc:creator>
      <dc:date>2013-07-05T11:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: SA-ldapsearch - NameError: name 'JAVA_HOME' is not defined</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/SA-ldapsearch-NameError-name-JAVA-HOME-is-not-defined/m-p/85531#M5512</link>
      <description>&lt;P&gt;In SA-ldapsearch the commands that are being called are in the bin directory. They seem to be trying to read the following registry keys:&lt;/P&gt;

&lt;PRE&gt;
HKEY_LOCAL_MACHINE\Software\JavaSoft\Java Runtime Environment\CurrentVersion
HKEY_LOCAL_MACHINE\Software\JavaSoft\Java Runtime Environment\($CurrentVersion)\JavaHome
&lt;/PRE&gt;

&lt;P&gt;It then tries to call java from the path at JavaHome plus \bin\java. If that fails it will try to read the JAVA_HOME environment variable. If you have something in the registry at those locations your JAVA_HOME will be ignored as it isn't the preferred method to define where Java is.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2013 11:12:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/SA-ldapsearch-NameError-name-JAVA-HOME-is-not-defined/m-p/85531#M5512</guid>
      <dc:creator>krugger</dc:creator>
      <dc:date>2013-07-05T11:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: SA-ldapsearch - NameError: name 'JAVA_HOME' is not defined</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/SA-ldapsearch-NameError-name-JAVA-HOME-is-not-defined/m-p/85532#M5513</link>
      <description>&lt;P&gt;Thanks, I couldn't figure out, why it didn't take my JAVA_HOME, but anyway I created the necessary reg keys in HKLM:SOFTWARE\JavaSoft\Java Runtime Environment. It's working now.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2013 11:15:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/SA-ldapsearch-NameError-name-JAVA-HOME-is-not-defined/m-p/85532#M5513</guid>
      <dc:creator>abpe</dc:creator>
      <dc:date>2013-07-05T11:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: SA-ldapsearch - NameError: name 'JAVA_HOME' is not defined</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/SA-ldapsearch-NameError-name-JAVA-HOME-is-not-defined/m-p/85533#M5514</link>
      <description>&lt;P&gt;There is actually a bug in the scripts (all of them)&lt;/P&gt;

&lt;P&gt;If your keys aren't defined--e.g. the latest server X64 installer for windows uses a tgz, not an MSI, so they're not--this is your fallback:&lt;/P&gt;

&lt;P&gt;JAVA_EXECUTABLE = r'%s\bin\java.exe' % os.environ[JAVA_HOME]&lt;/P&gt;

&lt;P&gt;No single quotes around JAVA_HOME. It can't work.&lt;/P&gt;

&lt;P&gt;I have contacted the maintainer about this.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:42:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/SA-ldapsearch-NameError-name-JAVA-HOME-is-not-defined/m-p/85533#M5514</guid>
      <dc:creator>cmeo</dc:creator>
      <dc:date>2020-09-28T16:42:51Z</dc:date>
    </item>
  </channel>
</rss>

