June 2017
Beginner
1296 pages
69h 23m
English
In Section 25.10, we demonstrated how to add your custom classes to the JShell classpath, so that you can then interact with them in JShell. Here we show how to do that with the com.deitel.timelibrary module from Section 36.4. For the purpose of this section, open a command window and change to the TimeApp folder in the ch36 examples folder, then start jshell.
The /env command can specify the module path and the specific modules that JShell should load from that path. To add the com.deitel.timelibrary module, execute the following command:
jshell> /env -module-path jars -add-modules com.deitel.timelibrary
| Setting new options and restoring state.
jshell>
The -module-path option ...
Read now
Unlock full access