One of the productivity features of platforms such as Node.JS is their REPL. Vert.x runs on the JVM however it can still use JJS
the JavaScript
REPL.
How it works
Given that the bootstraping of the project was done with the nashorn experiment any project can be run on the REPL
.
Assuming that the project has already been built as a fat-jar with a pom.xml all it is needed to do is:
- Start the REPL:
jjs -cp jarfile.jar
- Load vert.x into the engine
load('classpath:vertx.js');
- Load the application:
load('main.js');
- Profit!