Interactive setup for Java LSP development environment
Sets up Eclipse JDT LS, Maven, and Gradle for Java LSP development in Claude Code. Includes verification steps to test the installation.
/plugin marketplace add zircote/java-lsp/plugin install java-lsp@zircote-lspThis command will configure your Java development environment with Eclipse JDT LS and essential tools.
First, verify Java is installed (JDK 21+ recommended):
java -version
macOS (Homebrew):
brew install jdtls
Manual Installation:
~/.local/share/jdtls)Maven:
brew install maven
Gradle:
brew install gradle
# Google Java Format
brew install google-java-format
# Checkstyle (usually via Maven/Gradle plugin)
jdtls --version
mvn -version
gradle --version
export ENABLE_LSP_TOOL=1
Test the LSP integration:
# Create a test project
mkdir -p /tmp/test-java-lsp/src/main/java && cd /tmp/test-java-lsp
echo 'public class Main { public static void main(String[] args) { System.out.println("Hello"); } }' > src/main/java/Main.java
# Create minimal pom.xml
cat > pom.xml << 'EOF'
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>test</groupId>
<artifactId>test</artifactId>
<version>1.0</version>
</project>
EOF
# Compile
mvn compile
# Clean up
cd - && rm -rf /tmp/test-java-lsp