Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mac homebrew 1.2.0 "Unsupported major.minor version 51.0" #6313

Closed
AndreiRailean opened this issue May 26, 2014 · 10 comments
Closed

Mac homebrew 1.2.0 "Unsupported major.minor version 51.0" #6313

AndreiRailean opened this issue May 26, 2014 · 10 comments

Comments

@AndreiRailean
Copy link

After updating elasticsearch with homebrew to 1.2.0 ES doesn't work. Doesn't look like a homebrew error. When switching back to 1.1.1 everything works fine.

elasticsearch --config=/usr/local/opt/elasticsearch/config/elasticsearch.yml
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/elasticsearch/bootstrap/Elasticsearch : Unsupported major.minor version 51.0
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
    at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
@javanna
Copy link
Member

javanna commented May 26, 2014

Hi @AndreiRailean,
from 1.2 on we are not supporting Java 1.6 anymore. Looks like you just need to upgrade Java on your system. Also I'm not familiar with homebrew, not sure whether the java version requirement can somehow be specified somewhere.

@AndreiRailean
Copy link
Author

At the time the error happened, I was running Version 7 Update 55.

@dadoonet
Copy link
Member

I might be wrong, but I think you were using JAVA 1.6 before even if 1.7 was installed on your mac.
I mean that your path or Java home was not set correctly.

Installing a new version of Java actually fixed that.

Closing as you solved it.

@dadoonet
Copy link
Member

Did you remove your comment where you wrote

Upgrading to Version 7 Update 60 fixed the problem

@AndreiRailean
Copy link
Author

Upgrading to JRE 7.6 didn't do much. Had to get the JDK 7.6. Only with the new JDK could I start 1.2.0

@AndreiRailean
Copy link
Author

@uzbekjon
Copy link

uzbekjon commented Jul 2, 2014

Rather than installing JDK, it seem that you can simply define $JAVA_HOME variable and point it to your installation of Java 7. How and why I explained in the other issue comment.

@rianrainey
Copy link

@uzbekjon 👍

@murnieza
Copy link

murnieza commented Aug 6, 2014

@uzbekjon 👍

@macool
Copy link

macool commented Sep 8, 2014

@uzbekjon 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants