Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/murakmii/gojiai

gojiai is a toy JVM(compatible with Java SE8) implementation by Go.
https://github.com/murakmii/gojiai

Last synced: 8 days ago
JSON representation

gojiai is a toy JVM(compatible with Java SE8) implementation by Go.

Awesome Lists containing this project

README

        

# gojiai(WIP)

`gojiai` is a **toy** JVM(compatible with Java SE8) implementation by Go.

## Usage

```shell
# Build gj
git clone [email protected]:murakmii/gojiai.git && cd gojiai
go build -o gojiai cmd/main.go

# Compile sample code.
docker pull amazoncorretto:8

echo 'public class HelloGojiai {
public static void main(String[] args) {
System.out.println("Hello, gojiai!");
}
}' > HelloGojiai.java

docker run -v $(pwd):/gojiai -w /gojiai amazoncorretto:8 javac HelloGojiai.java

# Run it
docker run -v $(pwd):/gojiai -w /gojiai amazoncorretto:8 ./gojiai --config dist/config.json --main HelloGojiai
-> VM initialized!(59 ms)
-> Loaded classes: 165
-> Execute main method...
--------------------------------------
Hello, gojiai!
```