Skip to content
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

JavaSE-22 Runtime is not compatible #3553

Closed
rongxin-liu opened this issue Mar 29, 2024 · 3 comments
Closed

JavaSE-22 Runtime is not compatible #3553

rongxin-liu opened this issue Mar 29, 2024 · 3 comments

Comments

@rongxin-liu
Copy link

I'm getting an error message in Codespace: "Invalid runtime for JavaSE-22: Runtime at '/opt/jdk/' is incompatible with the 'JavaSE-22' environment."

I have specified the correct path to my jdk in settings.json, and my current JDK runtime is JavaSE-22.

Environment
  • Operating System: Ubuntu 22.04
  • JDK version: openjdk 22 2024-03-19
  • Visual Studio Code version: 1.87.2 (863d2581ecda6849923a2118d93a088b0745d9d6)
  • Java extension version:
Steps To Reproduce
  1. Install OpenJDK SE 22 at /opt/jdk
  2. Apply this setting to setting.json:
	"java.configuration.runtimes": [
		{
			"default": true,
			"name": "JavaSE-22",
			"path": "/opt/jdk/"
		}
	],
Current Result

RedHat Java Language Support extension showing errors:

Invalid runtime for JavaSE-22: Runtime at '/opt/jdk/' is not compatible with the 'JavaSE-22' environment.

Screenshot 2024-03-29 at 00 18 19

Expected Result

No error.

Additional Informations
@fbricon
Copy link
Collaborator

fbricon commented Mar 29, 2024

you need the pre-release build of vscode-java

@logonoff
Copy link
Member

/close

this should have been fixed in #3545, if not please open another issue :)

Copy link

openshift-ci bot commented Jul 30, 2024

@logonoff: You can't close an active issue/PR unless you authored it or you are a collaborator.

In response to this:

/close

this should have been fixed in #3545, if not please open another issue :)

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants