jdtls-lsp — Claude Code plugin: Java and installation
Connects Eclipse JDT.LS to Claude Code for Java code intelligence and refactoring. It works with .java files.
/plugin install jdtls-lsp@claude-plugins-official
/plugin marketplace add anthropics/claude-plugins-officialWhat jdtls-lsp does
jdtls-lsp connects the Eclipse JDT.LS language server to Claude Code. It provides Java code intelligence and refactoring support for files with the .java extension.
The plugin requires JDK 17 or later, not only a JRE. Check that requirement first, because the language server depends on a full JDK. JDT.LS can be installed with brew install jdtls on macOS, with yay -S jdtls on Arch Linux, or manually by downloading a release, extracting it, and placing a wrapper script named jdtls in PATH.
What it helps with
- inspect Java code in Claude Code
- refactor
.javafiles - connect Eclipse JDT.LS to a Claude Code project
- install the Java language server with a system package manager
Example prompts for the agent
- Analyze this
.javafile and identify type errors and dependency structure. - Suggest a refactoring for this Java class using Eclipse JDT.LS capabilities.
- Inspect this Java project and show which code changes can be made safely.
How to install jdtls-lsp
Plugin marketplace
/plugin install jdtls-lsp@claude-plugins-official/plugin marketplace add anthropics/claude-plugins-officialStep by step, with commands for each platform: Claude Code plugins: marketplaces, installing, and building your own
Questions about jdtls-lsp
How do I install jdtls-lsp in Claude Code?
Run /plugin marketplace add anthropics/claude-plugins-official first, then run /plugin install jdtls-lsp@claude-plugins-official. Install JDK 17 or later and JDT.LS using one of the supported system or manual methods.
What does jdtls-lsp do?
The plugin connects Eclipse JDT.LS to Claude Code. It adds Java code intelligence and refactoring support for .java files.
What does jdtls-lsp require?
It requires JDK 17 or later. On macOS, install JDT.LS with brew install jdtls; on Arch Linux, use yay -S jdtls. Manual installation uses a wrapper script named jdtls in PATH.
Source text
jdtls-lsp · Apache-2.0
# jdtls-lsp Java language server (Eclipse JDT.LS) for Claude Code, providing code intelligence and refactoring. ## Supported Extensions `.java` ## Installation ### Via Homebrew (macOS) ```bash brew install jdtls ``` ### Via package manager (Linux) ```bash # Arch Linux (AUR) yay -S jdtls # Other distros: manual installation required ``` ### Manual Installation 1. Download from [Eclipse JDT.LS releases](https://download.eclipse.org/jdtls/snapshots/) 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 - [Eclipse JDT.LS GitHub](https://github.com/eclipse-jdtls/eclipse.jdt.ls) - [VSCode Java Extension](https://github.com/redhat-developer/vscode-java) (uses JDT.LS)
© Anthropic · Apache-2.0 · anthropics/claude-plugins-official