-
Notifications
You must be signed in to change notification settings - Fork 506
Description
Tested in clean Windows Sandbox on x64 Windows:
- Install current VSCode 1.106.1 (system)
- Install
redhat.javaextension (currently 1.48.0) - Open Java file/new file with language set to
java - Observe error message:
Java 21 or more recent is required to run the Java extension. Please download and install a recent JDK. You can still compile your projects with older JDKs by configuring 'java.configuration.runtimes'
My understanding is that this should have installed a win32-x64 embedded JRE and used that, as per https://github.com/redhat-developer/vscode-java/wiki/JDK-Requirements. It does not appear to have done so. I don't believe I've done anything to force a universal install; I am using the most obvious install link from the MS VSCode marketplace.
The same thing occurs when installing the extension as a dependency of the recommended vscjava.vscode-java-pack (Extension Pack for Java) from Microsoft. Also tested with both user and system VSCode installs with the same result.
Version: 1.106.1 (system setup)
Commit: cb1933bbc38d329b3595673a600fab5c7368f0a7
Date: 2025-11-16T10:20:23.745Z
Electron: 37.7.0
ElectronBuildId: 12781156
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Windows_NT x64 10.0.26100
2025-11-19 13:05:15.551 [info] [Shared] Getting Manifest... redhat.java
2025-11-19 13:05:15.568 [info] [Shared] Installing extension: redhat.java {"isMachineScoped":false,"installPreReleaseVersion":false,"pinned":false,"profileLocation":{"$mid":1,"external":"vscode-userdata:/c%3A/Users/WDAGUtilityAccount/.vscode/extensions/extensions.json","path":"/c:/Users/WDAGUtilityAccount/.vscode/extensions/extensions.json","scheme":"vscode-userdata"},"isApplicationScoped":false,"productVersion":{"version":"1.106.1","date":"2025-11-16T10:20:23.745Z"}}
2025-11-19 13:05:16.016 [info] [Shared] Extension signature verification result for redhat.java: Success. Internal Code: 0. Executed: true. Duration: 380ms.
2025-11-19 13:05:17.531 [info] [Shared] Extracted extension to file:///c%3A/Users/WDAGUtilityAccount/.vscode/extensions/redhat.java-1.48.0: redhat.java
2025-11-19 13:05:17.557 [info] [Shared] Renamed to c:\Users\WDAGUtilityAccount\.vscode\extensions\redhat.java-1.48.0
2025-11-19 13:05:17.576 [info] [Shared] Extension installed successfully: redhat.java vscode-userdata:/c%3A/Users/WDAGUtilityAccount/.vscode/extensions/extensions.json
2025-11-19 13:05:00.222 [info] Extension host with pid 8360 started
2025-11-19 13:05:00.274 [info] ExtensionService#_doActivateExtension vscode.github-authentication, startup: false, activationEvent: 'onAuthenticationRequest:github'
2025-11-19 13:05:00.298 [info] ExtensionService#_doActivateExtension vscode.emmet, startup: false, activationEvent: 'onLanguage'
2025-11-19 13:05:00.349 [info] ExtensionService#_doActivateExtension vscode.git-base, startup: true, activationEvent: '*', root cause: vscode.git
2025-11-19 13:05:00.355 [info] ExtensionService#_doActivateExtension vscode.git, startup: true, activationEvent: '*'
2025-11-19 13:05:00.394 [info] ExtensionService#_doActivateExtension vscode.github, startup: true, activationEvent: '*'
2025-11-19 13:05:00.510 [info] Eager extensions activated
2025-11-19 13:05:00.514 [info] ExtensionService#_doActivateExtension vscode.debug-auto-launch, startup: false, activationEvent: 'onStartupFinished'
2025-11-19 13:05:00.517 [info] ExtensionService#_doActivateExtension vscode.merge-conflict, startup: false, activationEvent: 'onStartupFinished'
2025-11-19 13:05:17.685 [info] ExtensionService#_doActivateExtension redhat.java, startup: false, activationEvent: 'onLanguage:java'
2025-11-19 13:05:17.915 [error] Activating extension redhat.java failed due to an error:
2025-11-19 13:05:17.915 [error] {"message":"Java 21 or more recent is required to run the Java extension. Please download and install a recent JDK. You can still compile your projects with older JDKs by configuring ['java.configuration.runtimes'](https://github.com/redhat-developer/vscode-java/wiki/JDK-Requirements#java.configuration.runtimes)","label":"Get the Java Development Kit","command":"vscode.open","commandParam":{"$mid":1,"path":"/products/openjdk/download/","scheme":"https","authority":"developers.redhat.com","query":"sc_cid=701f2000000RWTnAAO"}}