CheerpJ 5.0 Launches with Java 21/25 and WasmGC Support
The new release brings full OpenJDK compatibility and improved performance to browser-based Java applications.
1CheerpJ 5.0 Architecture Update
The latest version of CheerpJ introduces full support for Java 21 and Java 25 within the browser environment. By integrating a complete OpenJDK implementation, the platform ensures that complex enterprise applications can run natively without requiring local installations. This release marks a significant shift in how legacy Java codebases interact with modern web standards.
2WasmGC Engine Integration
A primary technical advancement in this release is the implementation of a new WasmGC engine. This engine leverages WebAssembly Garbage Collection to optimize memory management and execution speed for Java applications running in the browser. By offloading garbage collection to the browser engine, developers achieve better performance parity with native desktop Java environments.
3Full OpenJDK Compatibility
CheerpJ 5.0 provides comprehensive support for the full OpenJDK stack, enabling developers to utilize standard Java libraries directly in web applications. This eliminates the need for custom shims or restricted subsets of the language. Teams can now migrate existing backend-heavy logic to the client-side while maintaining full compatibility with standard Java development workflows.
4Performance and Execution Gains
The transition to WasmGC significantly reduces the overhead typically associated with running Java in a sandboxed web environment. By utilizing native browser-level primitives, the runtime minimizes latency during object allocation and collection cycles. These improvements allow for smoother execution of high-performance Java applications that were previously considered too resource-intensive for browser deployment.
5Modernizing Legacy Enterprise Systems
This release specifically targets the modernization of legacy enterprise software that relies on older Java versions. Organizations can now expose complex desktop-based tools to web users without rewriting the entire codebase. By maintaining Java 21 and 25 support, CheerpJ ensures that businesses can leverage modern language features while extending the lifecycle of their existing software.
6Browser-Based Deployment Strategy
Deploying Java applications via CheerpJ 5.0 removes the dependency on local Java Runtime Environments for end users. This simplifies the distribution process for internal business tools and public-facing applications alike. Developers can manage updates centrally on the server, ensuring that all users access the latest version of the application without manual client-side patching.
7Technical Implications for Developers
The shift toward WasmGC requires developers to understand the interaction between Java bytecode and WebAssembly memory models. While the tool automates much of the conversion, optimizing performance involves aligning Java object structures with the capabilities of the underlying WasmGC engine. This provides a more predictable execution path for complex, multi-threaded Java applications in browsers.
8Future of Web-Based Java
CheerpJ 5.0 represents a milestone in bridging the gap between traditional enterprise Java and the modern web ecosystem. By prioritizing OpenJDK parity and WasmGC performance, the platform sets a new standard for browser-based execution. This evolution suggests a future where complex Java applications operate seamlessly across all modern web browsers without performance compromises.
Original article: programming — CheerpJ 5.0 Launches with Java 21/25 and WasmGC Support