JShell API
DRAFT 9-Debian+0-9b153-2
Module jdk.jshell

Package jdk.jshell.tool

Provides a mechanism to launch an instance of a Java™ shell tool. Allows configuration of the tool before launching. A builder is used to configure and launch the tool.

At the simplest, a builder is retrieved, and the builder is used to run the tool:

 
       JavaShellToolBuilder
             .builder()
             .run();
 
 
The builder can be configured and the run can have arguments:
 
       JavaShellToolBuilder
             .builder()
             .out(myCommandPrintStream, myOutputPrintStream)
             .locale(Locale.CANADA)
             .run("--feedback", "silent", "MyStart");
 
 
Skip navigation links
JShell API
DRAFT 9-Debian+0-9b153-2

Submit a bug or feature
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 2015, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.

DRAFT 9-Debian+0-9b153-2