wasm-jdk

module
v0.0.0-...-63c0616 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 10, 2025 License: AGPL-3.0

README

WASM JDK

How to test

  1. Clone openjdk/jdk21u
  2. Ensure you have the dependencies setup (such as openjdk 21/20)
  3. Build java source code into classes:
    git clone https://github.com/openjdk/jdk21u
    cd jdk21u
    bash configure
    make java
    
  4. Extract the class files:
    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 to /tmp/govm-test/
  6. Run gova in the directory (where you placed the java classfiles):
    go install github.com/LiterMC/wasm-jdk/cmd/gova@latest
    gova Test
    

Directories

Path Synopsis
cmd
ir
See: https://docs.oracle.com/javase/specs/jvms/se21/html/jvms-6.html#jvms-6.5
See: https://docs.oracle.com/javase/specs/jvms/se21/html/jvms-6.html#jvms-6.5
parser
This package declares standard Java class file parser
This package declares standard Java class file parser

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL