I'm trying to debug java in emacs.I'm running the command M-x dap-java-debug in emacs and I'm getting below error.
emacs workspace/executeCommand with
vscode.java.resolveMainClassfailed. (error "The connected server(s) does not support method workspace/executeCommand.To find out what capabilities support your server use
M-x lsp-describe-sessionand expand the capabilities section")
Attached is the screenshot of the error.
My emacs configuration is here.
How can I fix this error?

workspace/executeCommandlsp-javaisn't a language server.