{"id":3523,"date":"2016-03-30T00:43:28","date_gmt":"2016-03-30T00:43:28","guid":{"rendered":"http:\/\/www.garysieling.com\/blog\/?p=3523"},"modified":"2016-03-30T00:43:28","modified_gmt":"2016-03-30T00:43:28","slug":"fixing-solr-error-currently-defined-java_home-refers-location-java-not-found","status":"publish","type":"post","link":"https:\/\/www.garysieling.com\/blog\/fixing-solr-error-currently-defined-java_home-refers-location-java-not-found\/","title":{"rendered":"Fixing solr error: The currently defined JAVA_HOME refers to a location where Java could not be found"},"content":{"rendered":"<p>If you uninstall Java, or it is installed in a way that the solr service can&#8217;t see, you can get the following error:<\/p>\n<pre>\nThe currently defined JAVA_HOME (\/usr\/lib\/jvm\/java-8-oracle) refers\nto a location where Java could not be found.  Aborting.\nEither fix the JAVA_HOME variable or remove it from the\nenvironment so that the system PATH will be searched.\n<\/pre>\n<p>To fix this, you can edit \/etc\/default\/solr.in.sh, and add the following line (adjust to match your JDK):<\/p>\n<pre>\nSOLR_JAVA_HOME=\"\/usr\/lib\/jvm\/java-7-openjdk-i386\"\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>If you uninstall Java, or it is installed in a way that the solr service can&#8217;t see, you can get the following error: The currently defined JAVA_HOME (\/usr\/lib\/jvm\/java-8-oracle) refers to a location where Java could not be found. Aborting. Either fix the JAVA_HOME variable or remove it from the environment so that the system PATH &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.garysieling.com\/blog\/fixing-solr-error-currently-defined-java_home-refers-location-java-not-found\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Fixing solr error: The currently defined JAVA_HOME refers to a location where Java could not be found&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[9],"tags":[338,517,559],"aioseo_notices":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/3523"}],"collection":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/comments?post=3523"}],"version-history":[{"count":0,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/3523\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/media?parent=3523"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/categories?post=3523"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/tags?post=3523"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}