-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can not build Java 17 based projects with the openjdk version of openSUSE Leap #405
Comments
To make openJDK 11 usable I have executed sudo sh -c 'echo "JAVA_VERSION=\"11.0.16.0\"" > /usr/lib64/jvm/java-11-openjdk-11/release' |
It can be reproduced using Eclipse 2022-09.
This NPE happens at eclipse.jdt.core/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/util/JRTUtil.java Line 242 in f71a39a
It does not cover the JDK installation without |
Is this a valid use case? Or are there "regular" JDK builds without |
We have seen multiple (5+) users reporting this issue on the JDT language server side recently, and it looks like there are some JDK distributions that don't carry |
Would be nice to know which distributions are affected. |
As this issue author @weberhofer mentioned, openSUSE Leap's openjdk doesn't provide |
Where one can get this, and which exact version is affected? |
openSUSE is currently packaging those files in "java-XX-openjdk-jmods", but the packages will be updated to move the fle to the "headless" package. This is the packagers response: |
Well, there are many surprising things in universe, the compiler dependency to the release file is just one of them. |
"Wasn't fully installed" is pretty misleading. I made an arrangement for people that were hit by poorly thought-through design. There are different ways of getting version from a JRE. Reading the release file is not the canonical one. But never mind, I modified openSUSE/SUSE packages accordingly just to make users happy. |
I have filed a bug at openSUSE Bugzilla too. Maybe the fix should be made in Eclipse, too. I'm quite sure, another ticket is related to this issue, too: microsoft/vscode-java-debug/issues/1212
BUG DESCRIPTION:
Whenever the latest version of Eclipse tries to build a Java 11 or Java 17 based project using Leap's openjdk-11 or openjdk-17 it throws errors with the following message:
The reason for this issue is, that Eclipse expects a file /usr/lib64/jvm/java-17-openjdk-17/release holding some version information. The file included in the Java installation included in Eclipse contains the following two lines:
Copying this file into /usr/lib64/jvm/java-17-openjdk-17/release solves that issue for me.
STEPS TO REPRODUCE THE ISSUE:
The text was updated successfully, but these errors were encountered: