JShell doesn't provide a ToolProvider
Remi Forax
forax at univ-mlv.fr
Wed Nov 16 09:23:39 UTC 2016
Hi all, hi Robert,
currently, unlike javac or javadoc, there is no way to directly invoke jshell (JShellTool) because it lies in an internal package (which is a good idea).
I think the module jdk.jshell should provide a java.util.spi.ToolProvider so i can embed jshell, like i can embed any dynmic langage runtimes, in my program instead of having to invoke it using the command line (without being able to control the exact version of jshell or even if jshell is present in case of a custom jdk image).
regards,
Rémi
More information about the core-libs-dev
mailing list