/java-lsp:java-lspfrom MSApps Java LSP
Provides semantic Java code intelligence via Eclipse JDT Language Server: compile errors, type info, go-to-definition, find-references, call-graph context, and symbol resolution for .java files.
Ships in MSApps Java LSP. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Part of the LSP plugin series. Wraps Eclipse JDT Language Server
(jdtls) as a read-only, SOSA Level 1 intelligence source.
jdtls --help works and Java 17+ is on PATH (java -version).pom.xml, build.gradle[.kts],
settings.gradle[.kts], .project, or a .git directory..lsp.json wiring:
textDocument/publishDiagnostics → compile errorstextDocument/definition → jumptextDocument/references → call sitestextDocument/hover → type / Javadocworkspace/symbol → fuzzy class searchfind-references over every public/protected symbol in the touched file.incompleteClasspath, the project isn't fully loaded
yet — wait for the initial build (can take 10–60 s on first open) before
trusting reference counts.jdtls startup notes (non-obvious).lsp.json sets startupTimeout: 120000
(milliseconds); very large monorepos may need more in a fork.~/.cache/jdtls/workspace/<hash>/. Safe to delete to force reindex.--source 1.8 through latest) as long as a matching JDK is on the
runtime classpath. Configure via org.eclipse.jdt.ls.core.vmargs or
JAVA_HOME pointing at the runtime JDK.settings.json (consumer-side, optional){
"java.configuration.runtimes": [
{ "name": "JavaSE-17", "path": "/opt/homebrew/opt/openjdk@17", "default": true },
{ "name": "JavaSE-21", "path": "/opt/homebrew/opt/openjdk@21" }
],
"java.import.gradle.enabled": true,
"java.import.maven.enabled": true,
"java.autobuild.enabled": true
}
"jdtls hangs on startup."
Usually the initial Maven/Gradle resolve. Tail ~/.cache/jdtls/*/.metadata/.log
to confirm it's still progressing. Rule out VPN-blocked Maven Central.
"find-references returns only 2 hits but I know there are more." Two common causes:
incompleteClasspath warning)."Diagnostics show The type XXX cannot be resolved."
Classpath is broken. Check:
pom.xml / build.gradle is valid./mvnw dependency:resolve /
./gradlew dependencies)"Android Gradle project — jdtls doesn't see AAR dependencies."
jdtls doesn't run the full Android Gradle Plugin classloader. Open the project
first in Android Studio / IntelliJ to let AGP generate R.java and unpack
AARs, then point jdtls at the generated sources. For pure JVM modules (no
com.android.*), jdtls works directly.
"Kotlin interop — my Java file calls into Kotlin code, refs not found."
That's expected — jdtls doesn't parse .kt. Pair this plugin with
kotlin-lsp for the Kotlin side.
"Javadoc shows as raw HTML tags."
jdtls returns Markdown-rendered Javadoc when the client advertises
hover.markdown. The plugin does that by default; if you're seeing raw HTML
you're probably on a very old jdtls build — upgrade.
"Groovy / Scala / Clojure?"
Out of scope. They'd be sibling plugins (groovy-lsp, metals,
clojure-lsp). Open an issue if you need one.
./gradlew build, that's a
separate Bash tool concern.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub msapps-mobile/claude-plugins --plugin java-lspOther plugins' skills for the same job