{"id":36425956,"url":"https://github.com/anilople/javajvm","last_synced_at":"2026-01-11T18:00:18.565Z","repository":{"id":56100211,"uuid":"218029893","full_name":"Anilople/javajvm","owner":"Anilople","description":"A toy JVM written in Java","archived":false,"fork":false,"pushed_at":"2023-12-05T22:22:53.000Z","size":575,"stargazers_count":40,"open_issues_count":5,"forks_count":8,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-08T23:52:48.301Z","etag":null,"topics":["java","java-jvm","jvm"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Anilople.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-10-28T11:20:16.000Z","updated_at":"2025-07-22T14:31:54.000Z","dependencies_parsed_at":"2022-08-15T13:10:31.019Z","dependency_job_id":null,"html_url":"https://github.com/Anilople/javajvm","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/Anilople/javajvm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anilople%2Fjavajvm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anilople%2Fjavajvm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anilople%2Fjavajvm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anilople%2Fjavajvm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Anilople","download_url":"https://codeload.github.com/Anilople/javajvm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anilople%2Fjavajvm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28316889,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T14:58:17.114Z","status":"ssl_error","status_checked_at":"2026-01-11T14:55:53.580Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["java","java-jvm","jvm"],"created_at":"2026-01-11T18:00:16.935Z","updated_at":"2026-01-11T18:00:18.519Z","avatar_url":"https://github.com/Anilople.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Java JVM\n\n[![Build Status](https://travis-ci.com/Anilople/javajvm.svg?branch=master)](https://travis-ci.com/Anilople/javajvm)\n\n使用`Java 8`来实现一个纯解释执行的Java虚拟机。\n\n代码偏向于可读性，忽略性能。\n\n项目的目的在于更加深入的学习和理解Java虚拟机。\n\n# 怎么跑起来？\n\n## hello, world\n\n从[release](https://github.com/Anilople/javajvm/releases)中下载最新的版本的压缩包，解压后，你会看到2个文件\n\n* `HelloWorld.java`：未编译的Java代码，里面的内容即将运行在实现的JVM上\n* `javajvm-xxx.jar`：JVM的实现，本质上是一个jar包，里面放着编译好的Java代码。\n\n`xxx`代表版本号，不要在Shell中真的输入`xxx`，请将`javajvm-xxx.jar`自行换成对应的文件。\n\n在`javajvm-xxx.jar`所在的目录下，命令行中执行\n\n```shell\njava -jar javajvm-xxx.jar\n```\n\n运行上面的命令后，你会看到一些提示信息。\n\n现在，将`HelloWorld.java`编译成`HelloWorld.class`，然后用JVM运行。\n\n```shell\njavac HelloWorld.java # 编译，会生成文件 HelloWorld.java\njava -jar javajvm-xxx.jar HelloWorld # 运行刚刚编译出来的文件\n```\n\n## 如何用这个`JVM`跑自己的代码？\n\n修改上述中的文件`HelloWorld.java`，加入自己写的代码，再重复一次上述的流程即可。\n\n# 这个JVM是如何实现的？\n\n文档地址 https://anilople.github.io/javajvm/\n\n# 我的开发环境\n\nWindows 10 1903\n\nIntelliJ IDEA\n\nApache Maven 3.6.1\n\njava version \"1.8.0_231\"\n\n# 引用\n\n[java specification](https://docs.oracle.com/javase/specs/)\n\n[自己动手写Java虚拟机](https://book.douban.com/subject/26802084/)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanilople%2Fjavajvm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanilople%2Fjavajvm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanilople%2Fjavajvm/lists"}