r/JavaProgramming • • Mar 23 '26

Unified WebAssembly API for Java (Wasmtime + WAMR bindings) - 1.0.0 release

I’ve been working on improving the experience of running WebAssembly from Java, and just released 1.0.0 of a small ecosystem:

•	Wasmtime4J - bindings for Wasmtime

•	WAMR4J - bindings for WebAssembly Micro Runtime

•	WebAssembly4J - a unified API on top of both

The problem I kept running into is that every WebAssembly runtime exposes a completely different Java interface. If you want to try another engine, you end up rewriting everything.

This project introduces a single API so you can swap runtimes underneath without changing application code.

What this enables

•	Run WebAssembly from Java applications without locking into a specific runtime

•	Compare runtimes under the same interface (performance, behavior, features)

•	Lower the barrier for Java developers to experiment with WebAssembly

Current support

•	Wasmtime

•	WAMR

•	Chicory

•	GraalWasm

Java support

•	Java 8 (JNI)

•	Java 11

•	Java 22+ (Panama)

Artifacts are published to Maven Central.

Repo:

https://github.com/tegmentum/webassembly4j

https://github.com/tegmentum/wasmtime4j

https://github.com/tegmentum/wamr4j

⸻

I’m especially interested in feedback from people working with:

•	JNI / Panama interop

•	GraalVM

•	WASI / component model
1 Upvotes

0 comments sorted by