JShell is a REPL for Java. To use additional classes outside the default JRE it contains a /classpath
command to add a path to the current classpath.
Is there however a way to view the current classpath within the JShell environment?
Note that I'm using the following early release:
java version "9-ea"
Java(TM) SE Runtime Environment (build 9-ea+111)
Java HotSpot(TM) 64-Bit Server VM (build 9-ea+111, mixed mode)
The /env
command, without arguments, will list your environmental settings, including classpath.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With