Skip to content

Configuring JDTLS #1042

Answered by narendraj9
sabinpocris asked this question in Q&A
Discussion options

You must be logged in to vote

Here is what works for me:

(defun java-eclipse-jdt-launcher (_arg)
  "Returns a command to start Eclipse JDT launcher script `jdtls'."
  (let ((launcher-script (expand-file-name "org.eclipse.jdt.ls.product/target/repository/bin/jdtls" "~/code/eclipse.jdt.ls/"))
        (root-directory (project-root (project-current))))
    (if (file-exists-p launcher-script)
        (list launcher-script
              "-data"
              (expand-file-name (format "%s-%s" (md5 root-directory)
                                        (file-name-base (directory-file-name root-directory )))
                                "~/code/jdt-workspace/"))
      (message "Failed to find any JDT jar files.")
      nil)…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sabinpocris
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants