Skip to content

Java Fails to Run in Version >56.2 #1598

Closed
microsoft/java-debug
#622

Description

I get the following error when trying to run a Java file using the debugger:

'boolean org.eclipse.jdt.internal.core.SourceMethod.isMainMethodCandidate()'

JDK version: 25.0.1
VS Code version: 1.107.1
Language Support for Java(TM) by Red Hat version: 1.50.0

Please let me know if you need any additional information for a proper diagnosis.

Activity

  1. github-actions commented on Jan 5, 2026

    @github-actions

    Hi Ryan Russell-Verhoef (@Detrilemma), I'm an AI Support assistant here to help with your issue. While the team reviews your request, I wanted to provide some possible tips and documentation that might help you in the meantime.

    It looks like you’re hitting a NoSuchMethodError in the Eclipse JDT core (isMainMethodCandidate) when the Java Debug adapter tries to find your main method. That usually means your Java language server and the debugger extension are out of sync.

    Suggestions:

    Other references with low confidence

    The team will respond to your issue shortly. I hope these suggestions are helpful in the meantime. If this comment helped you, please give it a 👍. If the suggestion was not helpful or incorrect, please give it a 👎. Your feedback helps us improve!

  2. wenytang-ms commented on Jan 9, 2026

    @wenytang-ms
    Contributor

    Ryan Russell-Verhoef (@Detrilemma) can you share more details about this issue? or provide some project?

  3. Detrilemma commented on Jan 9, 2026

    @Detrilemma
    Author

    The debugger fails to run any Java code. The only way I can get it to work is if I install version 56.2.

  4. added a commit that references this issue on Mar 30, 2026
    0cd59bd
  5. added a commit that references this issue on Mar 31, 2026
    a4c27fb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions