{"id":16714262,"url":"https://github.com/flier/jav8","last_synced_at":"2025-04-10T06:10:26.010Z","repository":{"id":140004020,"uuid":"35017081","full_name":"flier/jav8","owner":"flier","description":"An implementation of the Java Scripting API (JSR223) base on the Google V8 Javascript engine.","archived":false,"fork":false,"pushed_at":"2015-05-04T06:10:15.000Z","size":4644,"stargazers_count":13,"open_issues_count":16,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-24T07:14:23.870Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flier.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-04T06:02:37.000Z","updated_at":"2023-01-05T15:55:39.000Z","dependencies_parsed_at":"2023-03-12T21:30:22.112Z","dependency_job_id":null,"html_url":"https://github.com/flier/jav8","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flier%2Fjav8","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flier%2Fjav8/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flier%2Fjav8/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flier%2Fjav8/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flier","download_url":"https://codeload.github.com/flier/jav8/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248166925,"owners_count":21058481,"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":[],"created_at":"2024-10-12T20:50:09.001Z","updated_at":"2025-04-10T06:10:25.978Z","avatar_url":"https://github.com/flier.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"An implementation of the Java Scripting API (JSR223) base on the Google V8 Javascript engine.\n\nJava Specification Request (JSR) 223 helps developers integrate Java technology and scripting languages by defining a standard framework and application programming interface (API) to do the following:\n\n* Access and control Java technology-based objects from a scripting environment\n* Create web content with scripting languages\n* Embed scripting environments within Java technology-based applications\n\nFor more detail, please read the article [Scripting for the Java Platform](http://java.sun.com/developer/technicalArticles/J2SE/Desktop/scripting/)\n\nTo use the Jav8 Scripting Engine, place the file jav8-jsr223-xxx.jar to your classpath. Then you could get an instance of the engine this way:\n```java\nScriptEngineManager factory = new ScriptEngineManager();\nScriptEngine engine = factory.getEngineByName(\"jav8\");\n```\nAnd you execute the script with the ScriptEngine?.eval method\n```java\n  try {\n    engine.eval(\"print('Hello, world!')\");\n  } catch (ScriptException ex) {\n      ex.printStackTrace();\n  }    \n```\nPlease check the unit tests for more detail\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflier%2Fjav8","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflier%2Fjav8","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflier%2Fjav8/lists"}