'class file version 57.0, this version of the Java Runtime only recognizes class file versions up to 52.0 [duplicate]
This question is very similar to this question except the environment and the way I am getting this error. I also tried solution provided in the answer but no luck.
I am using Eclipse for developing a Spring Boot Application on Computer1. The JDK/JRE version on Computer1 and Eclipse is JDK 13.0.1.
Now, I created a fat-JAR using eclipse mvn install and copied fat-JAR to Computer2. When I run the JAR file on Computer2 then I get the following error
On Computer2 I have JDK 13.0.1 installed and environment variable set. I removed the path "C:\Program Files (x86)\Common Files\Oracle\Java\javapath" from my Environment path as suggested by this similar question.
Any idea/suggestion how to resolve this issue.
Solution 1:[1]
The issue was that some applications come with their own JRE and sometimes the installed JDK appears at lower priority level in environment path. Now there are two options:
Uninstall the other application which has their own JDK/JRE. Sometimes it is not possible to remove the other application, which was my case. So I moved JDk installed by me to higher priority level in environment path.
The image for environment variable is uploaded at this similar question.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Karan |