[Feature]: support for java 25
🚀 Feature Request
Hi and thanks for the library!
I wanted to ask if there are plans on supporting Java 25, especially in the Docker images.
Thanks in advance
Example
No response
Motivation
Java 25 is the current LTS and will proceed to exist in the near future. It would be nice to have control over the used Java version in the Docker images.
@yury-s hi! Can you build new version https://mcr.microsoft.com/en-us/artifact/mar/playwright/java/tags ? Current version https://mcr.microsoft.com/en-us/artifact/mar/playwright/java/tag/v1.58.0-noble support only java 21
if I understand correctly github actions https://github.com/microsoft/playwright-java/commits/main/.github/workflows/publish_docker.yml push image to registry last run Dec 2, 2025
It was last published on Jan 28: https://github.com/microsoft/playwright-java/actions/runs/21458676347
okey, thank you I probably missed that github action
But I still only see Java 21 inside the container Maybe Im using the wrong image?
docker run -it mcr.microsoft.com/playwright/java:v1.58.0-noble bash
root@2ec774dbb34b:/# java -version
openjdk version "21.0.9" 2025-10-21
OpenJDK Runtime Environment (build 21.0.9+10-Ubuntu-124.04)
OpenJDK 64-Bit Server VM (build 21.0.9+10-Ubuntu-124.04, mixed mode, sharing)
root@2ec774dbb34b:/#
I checked, and the only available Java version is 21 image is up to date
docker pull mcr.microsoft.com/playwright/java:v1.58.0-noble
v1.58.0-noble: Pulling from playwright/java
Digest: sha256:a03ab49379f8d0b9a5cc3cf3d5e76657891ef39c94e9f282301b39476d981221
Status: Image is up to date for mcr.microsoft.com/playwright/java:v1.58.0-noble
mcr.microsoft.com/playwright/java:v1.58.0-noble
docker run -it mcr.microsoft.com/playwright/java:v1.58.0-noble bash
root@33f104e838a8:/# cd /usr/lib/jvm/
root@33f104e838a8:/usr/lib/jvm# ls -alh
total 20K
drwxr-xr-x 4 root root 4.0K Jan 28 23:32 .
drwxr-xr-x 1 root root 4.0K Jan 28 23:47 ..
-rw-r--r-- 1 root root 1.8K Oct 23 12:36 .java-1.21.0-openjdk-arm64.jinfo
lrwxrwxrwx 1 root root 21 Oct 23 12:36 java-1.21.0-openjdk-arm64 -> java-21-openjdk-arm64
drwxr-xr-x 9 root root 4.0K Jan 28 23:32 java-21-openjdk-arm64
drwxr-xr-x 2 root root 4.0K Jan 28 23:32 openjdk-21
root@33f104e838a8:/usr/lib/jvm#
@yury-s In your link I found this https://github.com/microsoft/playwright-java/actions/runs/21458676347/job/61805846232#step:7:50
#7 [2/6] RUN apt-get update && apt-get install -y --no-install-recommends openjdk-21-jdk wget unzip gpg && rm -rf /var/lib/apt/lists/* && adduser pwuser
so java 25 isnt installed in this image
You are right the PR updating the docker file was merged after the branch was cut and didn't make it to 1.58 (see https://github.com/microsoft/playwright-java/commits/release-1.58). It will be released with 1.59.