days
0
-13
-9
hours
-1
-2
minutes
-5
0
seconds
-1
-6
search
Latest CheerpJ release adds WebAssembly support

CheerpJ 2.0 brings Java applications to the web with JavaScript and WebAssembly

Maika Möbus
JavaScript
© Shutterstock / gabriel12

CheerpJ can convert your Java applications into JavaScript, and now version 2.0 was released with support for WebAssembly. CheerpJ 2.0 consists of an AOT compiler, a Java runtime in WebAssembly and JavaScript, and an interoperability API. It is available as community and commercial editions.

CheerpJ 2.0 has been released by Leaning Technologies, the company that is also behind the C/C++ compiler Cheerp. The announcement was made in a Medium blog post.

CheerpJ lets you convert legacy Java applications into JavaScript and WebAssembly. As it uses the Java bytecode, the application’s source code doesn’t need to be accessed, and it has full coverage for the Java 8 language and a full Java SE runtime library on board. It supports Java multi-threading as well as HTML5 web workers.

On the CheerpJ Demos page, you can see some examples including a code playground for running Java programs in the browser.

SEE ALSO: How to convert Java apps to JavaScript with CheerpJ

Let’s see what’s new in the latest major release.

CheerpJ 2.0

Version 2.0 adds updates regarding CheerpJ’s runtime, AOT compiler and integration APIs.

Most importantly, WebAssembly runtime modules were added. This should improve runtime speed and reduce the size of packages in situations that cause high computational cost, such as font rendering.

Other updates to the runtime include a new read-only filesystem in /str/ for strings or binary data and extended support for charsets.

Updates to the AOT compiler relate to multi-threading, robustness to invalid classes and more, and a new API for receiving preloading notifications can now be used.

SEE ALSO: How to convert Java apps to JavaScript with CheerpJ

CheerpJ is available for Windows, macOS and Linux as Community, Essential or Enterprise Edition.

Read more about CheerpJ 2.0 in the blog post and on GitHub.

Author
Maika Möbus
Maika Möbus has been an editor for Software & Support Media since January 2019. She studied Sociology at Goethe University Frankfurt and Johannes Gutenberg University Mainz.

Leave a Reply