https://github.com/litermc/wasm-jdk
JRE in browser
https://github.com/litermc/wasm-jdk
go-jdk go-jre jvm jvm-library
Last synced: about 1 month ago
JSON representation
JRE in browser
- Host: GitHub
- URL: https://github.com/litermc/wasm-jdk
- Owner: LiterMC
- License: agpl-3.0
- Created: 2025-01-31T03:59:05.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-29T19:54:26.000Z (12 months ago)
- Last Synced: 2025-06-29T20:36:24.541Z (12 months ago)
- Topics: go-jdk, go-jre, jvm, jvm-library
- Language: Go
- Homepage:
- Size: 328 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
- License: LICENSE
Awesome Lists containing this project
README
# WASM JDK
## How to test
1. Clone [openjdk/jdk21u](https://github.com/openjdk/jdk21u)
2. Ensure you have the dependencies setup (such as openjdk 21/20)
3. Build java source code into classes:
```bash
git clone https://github.com/openjdk/jdk21u
cd jdk21u
bash configure
make java
```
4. Extract the class files:
```bash
mkdir /tmp/govm-test
cd build/*-server-release/jdk/modules
cp -r ./*/* /tmp/govm-test/ 2>/dev/null
```
5. Write and compile a java test file (can just have the main function), or copy the [existing test file](https://github.com/LiterMC/wasm-jdk/blob/main/jcls/testdata/Test.class) to `/tmp/govm-test/`
6. Run gova in the directory (where you placed the java classfiles):
```bash
go install github.com/LiterMC/wasm-jdk/cmd/gova@latest
gova Test
```