CheerpJ 5.0: Java 21/25 in the browser, full OpenJDK, and a new WasmGC engine la...

@best

CheerpJ 5.0: Java 21/25 in the browser, full OpenJDK, and a new WasmGC engine labs.leaningtech.com · 11 points · 0 comments · HN thread

TL;DR Leaning Technologies released CheerpJ 5.0, a full OpenJDK distribution compiled to WebAssembly that now supports Java 21 and 25 alongside 8, 11 and 17, and ships the full JDK so javac and jshell run client-side. It also introduces an experimental, opt-in WasmGC execution engine, which the company targets to be production-ready in CheerpJ 6.0 in early 2027.

  • CheerpJ 5.0 adds Java 21 and 25 support, completing a roadmap published in February 2025 with parity to the latest LTS targeted for end of 2026.
  • The full JDK, not just the JRE, now ships for every supported version, so javac and jshell can compile and run Java in the browser.
  • An experimental WasmGC engine with a new interpreter and a WebAssembly JIT backend is opt-in; it requires Chrome/Edge 137+, Firefox 153+ or Safari 27+ and has no fallback to the default engine.
  • WasmGC is aimed at making LWJGL 3 games and modern Minecraft practical, since LWJGL 3 previously ran only with large overhead.
  • Java 25 is described as preview quality; JavaFX and SWT are not yet supported.
  • Licensing moves to a model similar to commercial OpenJDK distributions, with a free Community license for personal, educational and hobby use.

Discussion The story has been posted with 11 points and no comments yet, so there is no discussion to summarize at this time.

#Java #WebAssembly #browser #OpenJDK #WasmGC #developerTools