{"id":25820700,"url":"https://github.com/vontikov/java-lua","last_synced_at":"2026-05-01T20:32:49.697Z","repository":{"id":173990291,"uuid":"363909647","full_name":"vontikov/java-lua","owner":"vontikov","description":"Executes Lua scripts from Java","archived":false,"fork":false,"pushed_at":"2021-05-15T12:05:40.000Z","size":86,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-28T15:53:14.027Z","etag":null,"topics":["java","library","lua","lua-binding"],"latest_commit_sha":null,"homepage":"","language":"C++","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/vontikov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"2021-05-03T11:38:57.000Z","updated_at":"2023-11-10T20:06:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"6c15471b-0c90-4458-89be-ee99d73a1244","html_url":"https://github.com/vontikov/java-lua","commit_stats":null,"previous_names":["vontikov/java-lua"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/vontikov/java-lua","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vontikov%2Fjava-lua","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vontikov%2Fjava-lua/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vontikov%2Fjava-lua/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vontikov%2Fjava-lua/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vontikov","download_url":"https://codeload.github.com/vontikov/java-lua/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vontikov%2Fjava-lua/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32512665,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","library","lua","lua-binding"],"created_at":"2025-02-28T09:58:49.227Z","updated_at":"2026-05-01T20:32:49.690Z","avatar_url":"https://github.com/vontikov.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# java_lua\n\nProvides the ability to execute [Lua 5.4.3](https://www.lua.org/about.html)\nscripts from Java.\n\nLua scripts can call registered in a namespace Java functions:\n\n```\n    final String script =\n            \"r = java:fn(42, 'xyz')\\n\" +\n            \"print('call result: ', r) -- prints 100\\n\" +\n\n            \"r = ns:func('abc', 42, true, false)\\n\" +\n            \"print('call result: ', r) -- prints 200\\n\";\n\n      try (final LuaEngine e = new LuaEngine()) {\n\n          // register function in the default namespace 'java'\n          e.registerFunction(\"fn\", (Object... args) -\u003e {\n              // do something\n              ...\n\n              // return call result to the script\n              return 100;\n          });\n\n          // register external function in the custom namespace 'ns'\n          e.registerFunction(\"ns\", \"func\", (Object... args) -\u003e {\n              // do something\n              ...\n\n              // return call result to the script\n              return 200;\n          });\n\n          // load and execute\n          e.execute(script);\n\n          // ... or load\n          e.load(script);\n          // and execute\n          e.execute();\n\n          ...\n\n          // execute again\n          e.execute();\n      }\n```\nSee Java unit tests for the details\n\n## Build\n\n```\ngradle build\n```\n\n## Distribution\n\n```\ngradle assembleDist\n```\n\n## Run\n\nThe `java.library.path` system property should contain path to the folder with\n`libjl.so`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvontikov%2Fjava-lua","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvontikov%2Fjava-lua","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvontikov%2Fjava-lua/lists"}