- Java 9:Building Robust Modular Applications
- Dr. Edward Lavieri Peter Verhas Jason Lee
- 71字
- 2025-04-04 17:08:34
Loading scripts
Loading scripts in the JShell can be accomplished with one of the following methods:
- You can use the /open command along with the name of the script as a parameter. For example, if our script name is MyScript, we would use /open MyScript.
- A second option for loading scripts is to use the jshell MyScript.jsh at the Command Prompt. This will launch JShell and load the MyScript.jsh JShell script.