Reputation: 93978
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)
Upvotes: 5
Views: 1678
Reputation: 489
The /env
command, without arguments, will list your environmental settings, including classpath.
Upvotes: 3