{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/21102","repository_url":"https://api.github.com/repos/elastic/elasticsearch","labels_url":"https://api.github.com/repos/elastic/elasticsearch/issues/21102/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch/issues/21102/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch/issues/21102/events","html_url":"https://github.com/elastic/elasticsearch/issues/21102","id":184958184,"number":21102,"title":"UnsupportedClassVersionError: ... Unsupported major.minor version 52.0","user":{"login":"JazzFan","id":1261919,"avatar_url":"https://avatars.githubusercontent.com/u/1261919?v=3","gravatar_id":"","url":"https://api.github.com/users/JazzFan","html_url":"https://github.com/JazzFan","followers_url":"https://api.github.com/users/JazzFan/followers","following_url":"https://api.github.com/users/JazzFan/following{/other_user}","gists_url":"https://api.github.com/users/JazzFan/gists{/gist_id}","starred_url":"https://api.github.com/users/JazzFan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JazzFan/subscriptions","organizations_url":"https://api.github.com/users/JazzFan/orgs","repos_url":"https://api.github.com/users/JazzFan/repos","events_url":"https://api.github.com/users/JazzFan/events{/privacy}","received_events_url":"https://api.github.com/users/JazzFan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-10-24T21:21:50Z","updated_at":"2016-12-17T02:04:42Z","closed_at":"2016-10-24T21:24:22Z","body":"Exception in thread \"main\" java.lang.UnsupportedClassVersionError: org/elasticsearch/bootstrap/Elasticsearch : Unsupported major.minor version 52.0\n    at java.lang.ClassLoader.defineClass1(Native Method)\n    at java.lang.ClassLoader.defineClass(ClassLoader.java:800)\n    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)\n    at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)\n    at java.net.URLClassLoader.access$100(URLClassLoader.java:71)\n    at java.net.URLClassLoader$1.run(URLClassLoader.java:361)\n    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n    at java.security.AccessController.doPrivileged(Native Method)\n    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n    at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)\n    at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n    at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)\n\n**Elasticsearch version**:  5.0.0-alpha1/2/beta1 (5.0RC1)\n\n**Plugins installed**: [] none\n\n**JVM version**: \n\n**OS version**: Ubuntu 12.04 (wheezy/sid)\nLinux 3.2.0-69-virtual #103-Ubuntu SMP Tue Sep 2 05:21:29 UTC 2014\n\n**Description of the problem including expected versus actual behavior**:\nException in thread \"main\" java.lang.UnsupportedClassVersionError: org/elasticsearch/bootstrap/Elasticsearch : Unsupported major.minor version 52.0\n    at java.lang.ClassLoader.defineClass1(Native Method)\n    at java.lang.ClassLoader.defineClass(ClassLoader.java:800)\n    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)\n    at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)\n    at java.net.URLClassLoader.access$100(URLClassLoader.java:71)\n    at java.net.URLClassLoader$1.run(URLClassLoader.java:361)\n    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n    at java.security.AccessController.doPrivileged(Native Method)\n    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n    at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)\n    at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n    at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)\n\n**Steps to reproduce**:\n1. run bin/elasticsearch\n2. wait a minute\n"},"comment":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/comments/267736105","html_url":"https://github.com/elastic/elasticsearch/issues/21102#issuecomment-267736105","issue_url":"https://api.github.com/repos/elastic/elasticsearch/issues/21102","id":267736105,"user":{"login":"mtaylor769","id":945227,"avatar_url":"https://avatars.githubusercontent.com/u/945227?v=3","gravatar_id":"","url":"https://api.github.com/users/mtaylor769","html_url":"https://github.com/mtaylor769","followers_url":"https://api.github.com/users/mtaylor769/followers","following_url":"https://api.github.com/users/mtaylor769/following{/other_user}","gists_url":"https://api.github.com/users/mtaylor769/gists{/gist_id}","starred_url":"https://api.github.com/users/mtaylor769/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtaylor769/subscriptions","organizations_url":"https://api.github.com/users/mtaylor769/orgs","repos_url":"https://api.github.com/users/mtaylor769/repos","events_url":"https://api.github.com/users/mtaylor769/events{/privacy}","received_events_url":"https://api.github.com/users/mtaylor769/received_events","type":"User","site_admin":false},"created_at":"2016-12-17T02:04:42Z","updated_at":"2016-12-17T02:04:42Z","body":"So, the issue is not _THAT_ the JRE8 is installed, it's **HOW** it get's installed. On the Oracle Developer Downloads page, there are two options for OSX: '.dmg', and '.tar.gz'. I had used the .dmg to install and was getting this error. \r\n\r\nUnlike the flippant \"you need Java 8\" comments that are ever-so-helpful, especially after confirming my JRE8u111 with [Installed Java Checker](https://java.com/en/download/installed.jsp)  - I found an article that actually explains why installing using the .dmg is problematic and how to properly install using the .tar.gz file and adding it to the System Library in El Capitan:\r\n\r\n[Oracle’s JRE 8 on Mac OS X El Capitan](https://oliverdowling.com.au/2015/10/09/oracles-jre-8-on-mac-os-x-el-capitan/)\r\n\r\nIn the future, only comment if you have something more helpful to add, otherwise, STFU and keep it to yourself."}}
{"actor":{"display_login":"mtaylor769"}}