Skip to Content
avatar image
Former Member

HCP: JAVA Runtime 51.0 vs 52.0

Hello!

Actually I am running the "Hello world" tutorial on HCP.

On my current eclipse I did create the WAR file and uploaded it in HCP.

When I am starting the App in HCP the following error occurs:

"HTTP Status 500 - helloworld/HelloWorldServlet has been compiled by a more recent version of the Java Runtime (class file version 52.0), this version of the Java Runtime only recognizes class file versions up to 51.0"

Does anyone know who I can "downgrade" my compiling in Eclipse?

Does anyone know when HCP will upgrade their JAVA?

THX

Ralf

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    May 12, 2017 at 07:25 AM

    Hello,

    I got the same problem few days ago and used a previous version of the JDK instead.

    This is what I found here: http://stackoverflow.com/questions/10382929/how-to-fix-java-lang-unsupportedclassversionerror-unsupported-major-minor-versi

    PO

    Java SE 9 = 53,
    Java SE 8 = 52,
    Java SE 7 = 51,
    Java SE 6.0 = 50,
    Java SE 5.0 = 49,
    JDK 1.4 = 48,
    JDK 1.3 = 47,
    JDK 1.2 = 46,
    JDK 1.1 = 45
    Add comment
    10|10000 characters needed characters exceeded