View classpath in jshell

JShell is a REPL for Java. To use additional classes outside the standard JRE, it contains the /classpath command to add the path to the current class path.

Is there a way to view the current classpath in JShell?


Please note that I am 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) 
+5
source share
1 answer

The /env command with no arguments will display your environment settings, including the classpath.

+2
source

Source: https://habr.com/ru/post/1246628/


All Articles