{"id":13843276,"url":"https://github.com/trung/InMemoryJavaCompiler","last_synced_at":"2025-07-11T18:31:17.930Z","repository":{"id":28212622,"uuid":"31716516","full_name":"trung/InMemoryJavaCompiler","owner":"trung","description":"Utility class to compile java source code in memory","archived":false,"fork":false,"pushed_at":"2021-05-28T12:00:51.000Z","size":46,"stargazers_count":269,"open_issues_count":25,"forks_count":85,"subscribers_count":21,"default_branch":"master","last_synced_at":"2024-08-05T17:36:49.020Z","etag":null,"topics":["compiler","inmemory","java","source-code"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"yurisshOS/tshvdp","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trung.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":"2015-03-05T14:02:26.000Z","updated_at":"2024-08-02T08:28:32.000Z","dependencies_parsed_at":"2022-07-16T17:46:53.970Z","dependency_job_id":null,"html_url":"https://github.com/trung/InMemoryJavaCompiler","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trung%2FInMemoryJavaCompiler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trung%2FInMemoryJavaCompiler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trung%2FInMemoryJavaCompiler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trung%2FInMemoryJavaCompiler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trung","download_url":"https://codeload.github.com/trung/InMemoryJavaCompiler/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225745542,"owners_count":17517662,"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":["compiler","inmemory","java","source-code"],"created_at":"2024-08-04T17:01:58.572Z","updated_at":"2024-11-21T14:30:59.379Z","avatar_url":"https://github.com/trung.png","language":"Java","readme":"**Update 09/22/2017**: I've been silent for long time (I'm into Golang lately hence putting Java aside) despite the fact that there are lots of interests to make this mini tool better. I'll kick off my effort to improve this tool from now on by reviewing outstanding issues and PRs\n\n# InMemoryJavaCompiler [![Build Status](https://travis-ci.org/trung/InMemoryJavaCompiler.svg?branch=master)](https://travis-ci.org/trung/InMemoryJavaCompiler) [![codecov](https://codecov.io/gh/trung/InMemoryJavaCompiler/branch/master/graph/badge.svg)](https://codecov.io/gh/trung/InMemoryJavaCompiler) [![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Ftrung%2FInMemoryJavaCompiler.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Ftrung%2FInMemoryJavaCompiler?ref=badge_shield)\n\nSamples with utility classes to compile java source code in memory\n\nAfter taking huge effort to look for example on the internet and found nothing work. I decided to create a very simple version.\n\n**Note**: Please make sure you use JDK in your runtime\n\nE.g.:\n\n    StringBuilder sourceCode = new StringBuilder();\n    sourceCode.append(\"package org.mdkt;\\n\");\n    sourceCode.append(\"public class HelloClass {\\n\");\n    sourceCode.append(\"   public String hello() { return \\\"hello\\\"; }\");\n    sourceCode.append(\"}\");\n\n    Class\u003c?\u003e helloClass = InMemoryJavaCompiler.newInstance().compile(\"org.mdkt.HelloClass\", sourceCode.toString());\n\nIf you are looking for more examples, please look at unit tests in the `src/test/java` folder\n\nArtifact is pushed to Sonatype OSS Releases Repository\n\n    https://oss.sonatype.org/content/repositories/releases/\n\nMaven dependency:\n\n    \u003cdependency\u003e\n        \u003cgroupId\u003eorg.mdkt.compiler\u003c/groupId\u003e\n        \u003cartifactId\u003eInMemoryJavaCompiler\u003c/artifactId\u003e\n        \u003cversion\u003e1.3.0\u003c/version\u003e\n    \u003c/dependency\u003e\n\n\n## License\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Ftrung%2FInMemoryJavaCompiler.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Ftrung%2FInMemoryJavaCompiler?ref=badge_large)\n","funding_links":[],"categories":["Java"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrung%2FInMemoryJavaCompiler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrung%2FInMemoryJavaCompiler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrung%2FInMemoryJavaCompiler/lists"}