Tutorial: Advanced JShell Usage


You can use jshell to evaluate code using Java's standard APIs, but you can also prototype programs that require external dependencies, define a sequence of snippets and jshell commands in a file and pass it to the tool.This tutorial covers how to work with JavaFX in jshell, using predefined scripts or creating your own, and finally how to produce a jar file inside a jshell session.

More at https://dev.java/learn/jvm/tools/core/jshell-advanced