Community
Participate
Working Groups
Created attachment 287211 [details] Build Logs We have developed plugins to provide development environment for our domain specific language. We are using eclipse Oxygen, xText and java 1.8. After the recent eclipse release for 2021-09, our build started failing with below error. It is because it is downloading the latest version for some libraries via some indirect dependencies and they are build with java 11 and so can not run with java 8. Caused by: java.lang.UnsupportedClassVersionError: org/eclipse/jdt/internal/compiler/classfmt/ClassFormatException has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:756) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:468) at java.net.URLClassLoader.access$100(URLClassLoader.java:74) at java.net.URLClassLoader$1.run(URLClassLoader.java:369) at java.net.URLClassLoader$1.run(URLClassLoader.java:363) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:362) at java.lang.ClassLoader.loadClass(ClassLoader.java:418) at java.lang.ClassLoader.loadClass(ClassLoader.java:351) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:264) at org.eclipse.emf.mwe2.language.Mwe2RuntimeModule.isJdtCoreAvailable(Mwe2RuntimeModule.java:85) at org.eclipse.emf.mwe2.language.Mwe2RuntimeModule.bindAbstractTypeScopeProvider
*** Bug 576278 has been marked as a duplicate of this bug. ***
Newest JDT is compiled with Java 11. Use an older JDT. Or update your product to use a newer Eclipse, newer xText and build with and require Java 11.
We tried building with older jdt, but the build is failing with unresolved dependency to jdt 3.27.0. The latest jdt version is required through some indirect dependencies.
We can not move to java 11 now as we have some dependencies. How can we build it with java 1.8. I tried specifying the higher version for org.eclipse.jdt.core library to 3.20 but then the build fails with unresolvable dependency error for this library. It is because some other library indirectly requires the 3.27 version of this library.
Sounds like you have to downgrade that other library then.