Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Hello World Example

Simplest possible example using the Gradle WASM plugin.

There are only 2 source files:

To compile, run:

gradle compileJava

The compileWasm task is run automatically.

To run the Hello class, which uses the WASM-derived HelloWasm class, run:

java -cp build/classes/java/main:build/classes/wasm/main Hello
You can’t perform that action at this time.