Java.lang.UnsupportedClassVersionError: org/elasticsearch/ElasticsearchException : Unsupported major.minor version 51.0

Hi,

I have jdk1.7.0_75 in linux and elasticsearch server 1.4.1, but while
starting my jboss server i am getting below exception. I am able to run
elasticsearch server using same version. Any body knows what is java
compatible version for elastic search 1.4.1.

java.lang.UnsupportedClassVersionError:
org/elasticsearch/ElasticsearchException : Unsupported major.minor version
51.0

I do not have version 51 anywhere in my system, please advice

Thanks,
Vijaya

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/0b2880fb-324b-4d09-920f-a075d48393a0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Even though you have installed java7, it sounds like your JAVA_HOME is set to java6...

Check your config.

--
David :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 27 mars 2015 à 07:56, Vijayakumari B N vijayakumari.bn@gmail.com a écrit :

Hi,

I have jdk1.7.0_75 in linux and elasticsearch server 1.4.1, but while starting my jboss server i am getting below exception. I am able to run elasticsearch server using same version. Any body knows what is java compatible version for Elasticsearch 1.4.1.

java.lang.UnsupportedClassVersionError: org/elasticsearch/ElasticsearchException : Unsupported major.minor version 51.0

I do not have version 51 anywhere in my system, please advice

Thanks,
Vijaya

You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/0b2880fb-324b-4d09-920f-a075d48393a0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/AED34B15-2048-43F2-B925-3FCF60918C0A%40pilato.fr.
For more options, visit https://groups.google.com/d/optout.

Double check you are using JDK 1.7 or higher for your Elastic/JBoss combination.

It looks like you are using JDK 1.6 - the exception indicates that the Java runtime doesn't recognize the bytecode
version (51.0 stands for Java 7 class files [1]).

The class files major versions are:

Java 8 = 52, Java 7 = 51, Java 6 = 50, Java 5 = 49

[1] Java class file - Wikipedia

On 3/27/15 8:56 AM, Vijayakumari B N wrote:

Hi,

I have jdk1.7.0_75 in linux and elasticsearch server 1.4.1, but while starting my jboss server i am getting below
exception. I am able to run elasticsearch server using same version. Any body knows what is java compatible version for
Elasticsearch 1.4.1.

java.lang.UnsupportedClassVersionError: org/elasticsearch/ElasticsearchException : Unsupported major.minor version 51.0

I do not have version 51 anywhere in my system, please advice

Thanks,
Vijaya

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
elasticsearch+unsubscribe@googlegroups.com mailto:elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/0b2880fb-324b-4d09-920f-a075d48393a0%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/0b2880fb-324b-4d09-920f-a075d48393a0%40googlegroups.com?utm_medium=email&utm_source=footer.
For more options, visit https://groups.google.com/d/optout.

--
Costin

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/551512E4.5090801%40gmail.com.
For more options, visit https://groups.google.com/d/optout.