Compiling with current JDK throws error
nickbe opened this issue · 5 comments
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile (java-compile) on project lavagna: Compilation failure
[ERROR] X:\Workspace\GitHub-Systeme\lavagna\src\main\java\io\lavagna\service\ProjectService.java:[37,8] cannot access java.lang.Object
[ERROR] bad class file: /modules/java.base/java/lang/Object.class
[ERROR] class file has wrong version 58.0, should be 53.0
[ERROR] Please remove or make sure it appears in the correct subdirectory of the classpath.
So the question is exactly which JDK version was used to compile the project?
hi @nickbe ,
using sdkman, I'm using the following version:
$ sdk list java
...
8.0.242 | open | installed | 8.0.242-open
Seems that this version for windows is not available for download anymore.
Also from the Oracle site: https://www.oracle.com/java/technologies/javase/javase8-archive-downloads.html, i cannot locate any version number that seems to be the same.
Success 😁 Thanks a lot !
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.