In my last post  I reported that Robert Field provided me a patch: As I suggested, JShell observes a file even if the editor had not been started from within the shell. My idea was to automatically switch into a wait mode when the editor had not been started from within the shell. Maybe this idea had been to complicated. With the chosen solution a simple wait option is added which has to be provided while setting the editor:
/set editor -wait /home/mmueller/netbeans-dev-201609030002/bin/netbeans
The line above sets the editor to the latest (as the time of this writing) NetBeans development version. As you may observe in my last post, it is possible to start JShell within NetBeans and then use NetBeans as editor.
Starting with the current JDK9 EA build 134, this patch is public available for download .
Although this integration is very nice and useful, a NetBeans prototype with built in JShell support is under progress. I reported about an early version . I’ll continue to observe this development and like to report soon.