{"id":26212384,"url":"https://github.com/mrjameshamilton/java-class-file-api-hello-world","last_synced_at":"2025-04-15T15:45:35.619Z","repository":{"id":198088069,"uuid":"700026115","full_name":"mrjameshamilton/java-class-file-api-hello-world","owner":"mrjameshamilton","description":"A Java Class-File API Hello World example","archived":false,"fork":false,"pushed_at":"2025-03-09T09:23:27.000Z","size":12,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T22:07:31.315Z","etag":null,"topics":["bytecode","classfile","java","jep457","jvm"],"latest_commit_sha":null,"homepage":"https://jameshamilton.eu/programming/java-class-file-api-hello-world","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/mrjameshamilton.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-03T19:56:36.000Z","updated_at":"2025-03-11T21:33:31.000Z","dependencies_parsed_at":"2024-01-20T11:28:02.540Z","dependency_job_id":"2ab54daa-02d2-462b-8187-5ae2b192860c","html_url":"https://github.com/mrjameshamilton/java-class-file-api-hello-world","commit_stats":null,"previous_names":["mrjameshamilton/jep457-hello-world"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrjameshamilton%2Fjava-class-file-api-hello-world","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrjameshamilton%2Fjava-class-file-api-hello-world/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrjameshamilton%2Fjava-class-file-api-hello-world/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrjameshamilton%2Fjava-class-file-api-hello-world/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrjameshamilton","download_url":"https://codeload.github.com/mrjameshamilton/java-class-file-api-hello-world/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249103277,"owners_count":21213360,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["bytecode","classfile","java","jep457","jvm"],"created_at":"2025-03-12T08:31:21.938Z","updated_at":"2025-04-15T15:45:35.597Z","avatar_url":"https://github.com/mrjameshamilton.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Java Class-File API Hello World\n\n[JEP 484 Class-File API](https://openjdk.org/jeps/484) (previously [JEP 457](https://openjdk.org/jeps/484) and [JEP 466](https://openjdk.org/jeps/484)) is an API introduced in Java 24 to provide a standard API for parsing, \ngenerating, and transforming Java class files.\n\nThe example here shows how easy it is to use to create a \nnew class that prints \"Hello World\".\n\nhttps://github.com/mrjameshamilton/jep457-hello-world/blob/ea854cda0e058d728630af907f9ed715d9a081ca/Main.java#L14-L19\n\n# Building\n\nYou'll need JDK 24 and easiest way to install this on Linux is with [SDK man](https://sdkman.io/):\n\n```shell\nsdk install java 24.ea.36-open\n```\n\nIf you have Java 24, you can execute the `Main.java` file which will produce a new class file `HelloWorld.class`:\n\n```shell\n$ java Main.java\n```\n\nYou can then execute the `HelloWorld` class file:\n\n```shell\n$ java HelloWorld\nHello World\n```\n\n# Similar projects\n\nThere are many similar projects for parsing,\ngenerating, and transforming Java class files, including:\n\n* [ASM](https://asm.ow2.io/)\n* [ProGuardCORE](https://github.com/Guardsquare/proguard-core)\n* [ByteBuddy](https://bytebuddy.net/#/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrjameshamilton%2Fjava-class-file-api-hello-world","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrjameshamilton%2Fjava-class-file-api-hello-world","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrjameshamilton%2Fjava-class-file-api-hello-world/lists"}