java with eglot dape

Debugging

Download the latest version of the jdtls java plugin. You can find the latest version number on github.com/microsoft/java-debug. Then, use mvn to download the file:

$ mvn \
  org.apache.maven.plugins:maven-dependency-plugin:2.1:get \
  -Dartifact=com.microsoft.java:com.microsoft.java.debug.plugin:0.51.1

We then know the path of the JAR file:

~/.m2/repository/com/microsoft/java/com.microsoft.java.debug.plugin/0.51.1/com.microsoft.java.debug.plugin-0.51.1.jar
(add-to-list
  'eglot-server-programs
  `((java-mode java-ts-mode) .
    ("jdtls"
    :initializationOptions
    (:bundles ["/home/torstein/.m2/repository/com/microsoft/java/com.microsoft.java.debug.plugin/0.51.1/com.microsoft.java.debug.plugin-0.51.1.jar"]))))

~ /home 🏠 ~ talks 💬 ~ bash ~ craftsmanship ~ db ~ dongxi ~ emacs ~ escenic ~ iam ~ java ~ js ~ language ~ latex ~ ldap ~ life ~ linux ~ llm ~ mac-os-x ~ mt-foo ~ network ~ norsk ~ python ~ quotes ~ running ~ security ~ travel ~ unix ~ various ~ vcs ~ webdesign ~ windows ~ discoveries ~ cv 🧙 ~

Licensed under CC BY Creative Commons License ~ 📡 RSS feed ~ ✉ torstein.k.johansen @ gmail ~ 🐘 @skybert@hachyderm.io ~ 🎥 youtube.com/@skybert