In my last post [1] 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 [2].

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 [3]. I’ll continue to observe this development and like to report soon.

Stay tuned!

 

[1] blog.mueller-bruehl.de/netbeans/netbeans-and-jshell

[2] jdk9.java.net/download

[3] blog.mueller-bruehl.de/netbeans/netbeans-and-the-java-platform-shell