feenkcom/jdt2famix

Cannot compile with Java 8

Opened this issue · 2 comments

It is no longer possible to compile using java 8.
The following error occurs:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) on project jdt2famix: Compilation failure
[ERROR] /C:/Users/jpn/Downloads/source/jdt2famix_2/src/main/java/com/feenk/jdt2famix/Importer.java:[33,55] cannot access org.eclipse.core.runtime.Plugin
[ERROR] bad class file: C:\Users\jpn.m2\repository\org\eclipse\platform\org.eclipse.core.runtime\3.24.100\org.eclipse.core.runtime-3.24.100.jar(org/eclipse/core/runtime/Plugin.class)
[ERROR] class file has wrong version 55.0, should be 52.0
[ERROR] Please remove or make sure it appears in the correct subdirectory of the classpath.

It seems that the dependency "org.eclipse.core.runtime" is no longer available for java 8 (version 52.0).

girba commented

Indeed, we moved away from that version of Java.

Does that mean that it should be build with java 11 instead?