With the release of Beanshell3 coming, consider either to migrate to BSH3 or use jshell.api of JDK 9 or higher.