Skip to content

Instantly share code, notes, and snippets.

@karthiks
Created April 19, 2026 06:35
Show Gist options
  • Select an option

  • Save karthiks/f04c101a07ec9b8e93d1d4a5cef2205d to your computer and use it in GitHub Desktop.

Select an option

Save karthiks/f04c101a07ec9b8e93d1d4a5cef2205d to your computer and use it in GitHub Desktop.
Reference Implementation - Minimal one to install JDTLS in Docker container
# Use official Maven image with JDK 21
FROM maven:3.9.6-eclipse-temurin-21
# Install dependencies for JDTLS (Python is required for the wrapper script)
RUN apt-get update && apt-get install -y \
python3 \
wget \
tar \
&& rm -rf /var/lib/apt/lists/*
# Set JDTLS version and path
ENV JDTLS_HOME=/opt/jdtls
RUN mkdir -p $JDTLS_HOME
# Download and extract the latest JDTLS snapshot
RUN wget -qO- https://download.eclipse.org/jdtls/snapshots/jdt-language-server-latest.tar.gz \
| tar -xvz -C $JDTLS_HOME
# Create a symlink to the jdtls executable script
RUN ln -s $JDTLS_HOME/bin/jdtls /usr/local/bin/jdtls
ENTRYPOINT ["bash", "-i"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment