Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/murakmii/gojiai
- Owner: murakmii
- Created: 2023-08-18T10:43:01.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-29T02:31:45.000Z (about 1 year ago)
- Last Synced: 2024-06-21T06:22:06.566Z (7 months ago)
- Language: Go
- Homepage:
- Size: 359 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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:8echo 'public class HelloGojiai {
public static void main(String[] args) {
System.out.println("Hello, gojiai!");
}
}' > HelloGojiai.javadocker 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!
```