{"id":7602,"date":"2015-09-13T13:45:17","date_gmt":"2015-09-13T13:45:17","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2015\/09\/13\/installing-elasticsearch-on-osx-mavericks-open-source-projects-elastic-elasticsearch\/"},"modified":"2015-09-13T13:45:17","modified_gmt":"2015-09-13T13:45:17","slug":"installing-elasticsearch-on-osx-mavericks-open-source-projects-elastic-elasticsearch","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2015\/09\/13\/installing-elasticsearch-on-osx-mavericks-open-source-projects-elastic-elasticsearch\/","title":{"rendered":"Installing Elasticsearch on OSX Mavericks-open source projects elastic\/elasticsearch"},"content":{"rendered":"<p>I&#8217;m trying to install Elasticsearch 1.1.0 on OSX Mavericks but i got the following errors when i&#8217;m trying to start:<\/p>\n<pre><code>:&gt; .\/elasticsearch\nException in thread \"main\" java.lang.NoClassDefFoundError: Could not initialize class org.elasticsearch.Version\nat org.elasticsearch.bootstrap.Bootstrap.buildErrorMessage(Bootstrap.java:252)\nat org.elasticsearch.bootstrap.Bootstrap.main(Bootstrap.java:236)\nat org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:32)\n<\/code><\/pre>\n<p>Also when i&#8217;m executing the same command with -v arg, i got this error:<\/p>\n<pre><code>:&gt; .\/elasticsearch -v\nException in thread \"main\" java.lang.NoSuchFieldError: LUCENE_36\nat org.elasticsearch.Version.(Version.java:42)\n<\/code><\/pre>\n<p>Here&#8217;s my environment:<\/p>\n<p>Java version<\/p>\n<pre><code>&gt;: java -version\njava version \"1.8.0\"\nJava(TM) SE Runtime Environment (build 1.8.0-b132)\nJava HotSpot(TM) 64-Bit Server VM (build 25.0-b70, mixed mode)\n<\/code><\/pre>\n<p>Instalation path (downloaded .tar.gz archive from elasticsearch download page and extracted here):<\/p>\n<pre><code>\/usr\/local\/elasticsearch-1.1.0\n<\/code><\/pre>\n<p>ENV vars:<\/p>\n<pre><code>JAVA_HOME=\/Library\/Java\/JavaVirtualMachines\/jdk1.8.0.jdk\/Contents\/Home \nCLASSPATH=\/usr\/local\/elasticsearch-1.1.0\/lib\/*.jar:\/usr\/local\/elasticsearch-1.1.0\/lib\/sigar\/*.jar\n<\/code><\/pre>\n<h2>UPDATE<\/h2>\n<p>i finally make it working, unfortunally not sure how because i tried a lot of changes :). But here&#8217;s a list of changes i made that can help:<\/p>\n<p><strong>~\/Library\/Caches<\/strong><\/p>\n<p><strong>\/Library\/Caches<\/strong><\/p>\n<ul>\n<li>\n<p>i removed CLASSPATH env var.<\/p>\n<\/li>\n<li>\n<p>ES_PATH and ES_HOME env vars are not set either, but i think this is not so important.<\/p>\n<\/li>\n<\/ul>\n<p>Note: now it&#8217;s working also if i&#8217;m installing with brew.<\/p>\n<p>Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m trying to install Elasticsearch 1.1.0 on OSX Mavericks but i got the following errors when i&#8217;m trying to start: :&gt; .\/elasticsearch Exception in thread &#8220;main&#8221; java.lang.NoClassDefFoundError: Could not initialize class org.elasticsearch.Version at org.elasticsearch.bootstrap.Bootstrap.buildErrorMessage(Bootstrap.java:252) at org.elasticsearch.bootstrap.Bootstrap.main(Bootstrap.java:236) at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:32) Also when i&#8217;m executing the same command with -v arg, i got this error: :&gt; .\/elasticsearch -v [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7602","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7602","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=7602"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7602\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7602"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7602"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7602"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}