this line is in a method that takes a list of strings that are calling addtoclasspath which is an expensive operation (semi-restart jshell) and it treats the string as classpath separated by path ...
BaseKernel.eval(..) should not declare a checked exception. It should throw some kind of RuntimeException instead. This will allow the extension classes to cut down the exception handling boilerplate: ...