An ahead-of-time Java-to-JavaScript compiler written in Rust.
classtojs can be built from source using cargo.
git clone https://github.com/zigazeljko/classtojs.git
cd classtojs
cargo build
Compiling a single class file to JavaScript:
classtojs Example.class out.js
Compiling multiple files using a config file:
classtojs example.toml out.js
Demos are available in the classtojs-demos repository.
Online demos: JBox2D and Minecraft4k.