Skip to content

Forge-Srl/bionic-js-runtime-java

Repository files navigation

bionic.js Java runtime

javadoc

Build bionic.js Java

This is the Java runtime library used by bionic.js (for more information see the main repository)

Installation

Add this to your pom.xml:

<dependency>
  <groupId>srl.forge</groupId>
  <artifactId>bionic-js</artifactId>
</dependency>

Also, you must add a JJBridge engine for JavaScript code execution, for example JJBridge V8 engine.

Usage

The full javadoc is available at https://www.javadoc.io/doc/srl.forge/bionic-js/latest/index.html.

Setup

To ensure bionic.js runs properly you must set the JavaScript engine. Just add this at the beginning of your program:

BjsProject.setJsEngine(new V8Engine()); // In this case we are using JJBridge V8 engine

Also, if you need to enable the JavaScript inspector add:

BjsProject.enableInspector(9876); // Or any other free IP port on your machine

License

See the LICENSE file for license rights and limitations (MIT).