Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/forge-srl/bionic-js-runtime-java
Java runtime for bionic.js
https://github.com/forge-srl/bionic-js-runtime-java
android android-library bionic-js java java-library javascript jjbridge
Last synced: 3 months ago
JSON representation
Java runtime for bionic.js
- Host: GitHub
- URL: https://github.com/forge-srl/bionic-js-runtime-java
- Owner: Forge-Srl
- License: mit
- Created: 2021-02-18T15:38:49.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-09-07T11:58:50.000Z (over 3 years ago)
- Last Synced: 2023-11-17T09:54:12.764Z (about 1 year ago)
- Topics: android, android-library, bionic-js, java, java-library, javascript, jjbridge
- Language: Java
- Homepage:
- Size: 143 KB
- Stars: 7
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# bionic.js Java runtime
[![javadoc](https://javadoc.io/badge2/srl.forge/bionic-js/javadoc.svg)](https://javadoc.io/doc/srl.forge/bionic-js)
![Build bionic.js Java](https://github.com/Forge-Srl/bionic-js-runtime-java/workflows/Build%20bionic.js%20Java/badge.svg?branch=main)
This is the Java runtime library used by bionic.js (for more information see the [main repository](https://github.com/Forge-Srl/bionic-js))
## Installation
Add this to your pom.xml:
```xmlsrl.forge
bionic-js```
Also, you must add a [JJBridge engine](https://github.com/Forge-Srl/jjbridge-api#installation) for JavaScript code execution,
for example [JJBridge V8 engine](https://github.com/Forge-Srl/jjbridge-engine-v8).## Usage
The full javadoc is available at .### Setup
To ensure bionic.js runs properly you must set the JavaScript engine. Just add this at the beginning of your program:
```java
BjsProject.setJsEngine(new V8Engine()); // In this case we are using JJBridge V8 engine
```Also, if you need to enable the JavaScript inspector add:
```java
BjsProject.enableInspector(9876); // Or any other free IP port on your machine
```## License
See the [LICENSE](LICENSE.md) file for license rights and limitations (MIT).