Skip to content

No delegateCommandHandler for vscode.java.resolveMainMethod #1612

@M-k-03

Description

@M-k-03

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
Image

Issue still persists.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions