Maarten Bodewes
Maarten Bodewes

Reputation: 93978

View classpath in jshell

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

Answers (1)

Robert Field
Robert Field

Reputation: 489

The /env command, without arguments, will list your environmental settings, including classpath.

Upvotes: 3

Related Questions