on 10-24-2016 4:44 PM
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
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-unsupp...
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It is because of Java version mismatch. Unsupported major.minor version error happens when you compile your projects on higher version of java(e.g. jdk 1.8) and then run it on a lower version (e.g. jdk 1.7). Depending on your situation, you have two ways to resolve this error: compile your code for an earlier version of Java, or run your code on a newer Java version. Sometimes you may have more than one version of Java SDK installed in your machine. Make sure the application you are running is pointing to the right or highest version available . It is better you need to install both JRE/JDK with the same version.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.