‘vscode.java.resolveClasspath’ failed.
lsp-workspace-command-execute: ‘workspace/executeCommand’ with ‘vscode.java.resolveClasspath’ failed.
(error "Failed making field ’java.lang.StackTraceElement#classLoaderName’ accessible; either increase its visibility or write a custom TypeAdapter for its declaring type.") Mark set
I need some help
I've never used this command ever. And can not found this commad in my environment. Just curious what this command is used for.
this is my dap-template
(dap-register-debug-template "jetcache-application" (list :type "java" :request "attach" :args "" :cwd nil :stopOnEntry :json-false :host "localhost" :request "launch" :modulePaths (vector) :classPaths nil :projectName "jetcache-application" :mainClass "com.tongzhou.jetcache.JetcacheApplication"))
I dont not know how to set config
I ran into this same issue. What I would up doing was re-installing the jdtls lsp server.
;; Re-install Java lsp server. When running below command, select jdtls
M-x lsp-install-server
;; Quit Emacs
C-x C-c
;; Restart emacs and navigate to breakpoint you wish to set in your code
M-x dap-breakpoint-add
;; Run debugger
M-x dap-java-debug
;; Wow your friends and enemies as Emacs stops at the breakpoint and lets you see variable contents and such
Note: I'm using OpenJDK 17 here as provided by Ubuntu.