Skip to Content
author's profile photo Former Member
Former Member

Build failed:Unsupported class version

Hi everyone,I was working on Hybris and was facing an issue after trying to build an environment from scratch.When I type ant clean on command line to build from scratch,I am getting an error message: "BUILD FAILED:java.lang.UnsupportedClassVersion".I will really appreciate if you can tell me the reasons of this error and the steps to rectify it.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Aug 21, 2015 at 09:47 AM

    Please check your Java version. If you are trying to build on a lower version than Java 1.7, you will get this error.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 21, 2015 at 09:48 AM

    Hi, you should check Java version which you use to build platform. Unsupported class version means basically that you try compile your sources with version lower than some libraries used by source code were build with.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 21, 2015 at 03:35 PM

    If you are using hybris 5.5.1+ you need to use java 8 https://wiki.hybris.com/display/release5/Release+5.5.1+Technology+Upgrade

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.