code: public void addToClasspath(String path) {
          checkIfAlive();
          // Compiler
          taskFactory.addToClasspath(path);
          // Runtime
          try {
              executionControl().addToClasspath(path);
          } catch (ExecutionControlException ex) {
              debug(ex, "on addToClasspath(" + path + ")");
          }
          if (sourceCodeAnalysis != null) {
              sourceCodeAnalysis.classpathChanged();
          }
      }
docs: The specified path is added to the end of the classpath used in eval().
  Note that the unnamed package is not accessible from the package in which
  {@link JShell#eval(String)} code is placed.
  @param path the path to add to the classpath.
  @throws IllegalStateException if this {@code JShell} instance is closed.