classtojs
An ahead-of-time Java-to-JavaScript compiler written in Rust.
Installation
classtojs can be built from source using cargo.
git clone https://github.com/zigazeljko/classtojs.git
cd classtojs
cargo build
Usage
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
Demos are available in the classtojs-demos repository.
Online demos: JBox2D and Minecraft4k.