Bug 576277 - Build failure after eclipse release 2021-09
Summary: Build failure after eclipse release 2021-09
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: IDE (show other bugs)
Version: 4.22   Edit
Hardware: PC Windows 10
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 576278 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-09-27 02:37 EDT by Prerana Doshi CLA
Modified: 2021-09-28 03:51 EDT (History)
1 user (show)

See Also:


Attachments
Build Logs (24.74 KB, text/plain)
2021-09-27 02:37 EDT, Prerana Doshi CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Prerana Doshi CLA 2021-09-27 02:37:47 EDT
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
Comment 1 Andrey Loskutov CLA 2021-09-27 02:45:40 EDT
*** Bug 576278 has been marked as a duplicate of this bug. ***
Comment 2 Thomas Wolf CLA 2021-09-27 03:09:11 EDT
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.
Comment 3 Prerana Doshi CLA 2021-09-27 06:17:51 EDT
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.
Comment 4 Prerana Doshi CLA 2021-09-27 06:19:08 EDT
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.
Comment 5 Prerana Doshi CLA 2021-09-27 23:14:09 EDT
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.
Comment 6 Thomas Wolf CLA 2021-09-28 03:51:25 EDT
Sounds like you have to downgrade that other library then.