Skip to content

Latest version that supports Java8 #3251

Answered by jakDev003
jakDev003 asked this question in Q&A
Discussion options

You must be logged in to vote

This is working for me. So I will post here for completeness.

[language-server]
jdtls = { command = "jdtls" }
language-server = { command = "sdk use java 21.0.4-tem && jdtls", args = [
  "-data", "/home/$USER/.cache/jdtls/workspace",
  "--jvm-arg=-javaagent:/usr/local/bin/lombok/lombok.jar"
]}

[[language]]
name = "java"
scope = "source.java"
injection-regex = "java"
file-types = ["java"]
roots = ["pom.xml", "build.gradle", ]
indent = { tab-width = 4, unit = "    " }
language-servers = [ "jdtls" ]

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@jakDev003
Comment options

@fbricon
Comment options

@jakDev003
Comment options

@jakDev003
Comment options

Answer selected by jakDev003
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