After installing the Java extensions in VS Code, the Run/Debug option does not work and the following error appears:
No delegateCommandHandler for vscode.java.resolveMainMethod
Additionally, VS Code shows:
The version of required extension "Language Support for Java™ by Red Hat" is too stale. Please update it and reload the page.
The Java Language Server does not start, and the main() method is not detected.
Environment
- VS Code: (add your version)
- JDK: Microsoft OpenJDK 21 (C:\Program Files\Microsoft\jdk-21.0.10.7-hotspot)
- OS: Windows
- Extensions: Extension Pack for Java
Steps Already Tried
- Updated and reinstalled Java extensions
- Deleted .vscode, extensions, extensionsCache, and extensionsObsolete
- Restarted VS Code and system
- Manually configured java.configuration.runtimes
Issue still persists.
After installing the Java extensions in VS Code, the Run/Debug option does not work and the following error appears:
No delegateCommandHandler for vscode.java.resolveMainMethodAdditionally, VS Code shows:
The version of required extension "Language Support for Java™ by Red Hat" is too stale. Please update it and reload the page.The Java Language Server does not start, and the main() method is not detected.
Environment
Steps Already Tried
Issue still persists.