jdtls LSP

Plugin

为 Claude Code 接入 Eclipse JDT.LS 语言服务器,让 agent 在 Java 代码里跳转定义、查找引用、查看符号等。需要 JDK 17+,并先安装 jdtls。Anthropic 官方插件。

anthropics/claude-plugins-official · plugins/jdtls-lsp40.4k
在 GitHub 上查看
README

jdtls-lsp

Java language server (Eclipse JDT.LS) for Claude Code, providing code intelligence and refactoring.

Supported Extensions

.java

Installation

Via Homebrew (macOS)

brew install jdtls

Via package manager (Linux)

# Arch Linux (AUR)
yay -S jdtls

# Other distros: manual installation required

Manual Installation

  1. Download from Eclipse JDT.LS releases
  2. Extract to a directory (e.g., ~/.local/share/jdtls)
  3. Create a wrapper script named jdtls in your PATH

Requirements

  • Java 17 or later (JDK, not just JRE)

More Information