Thanks! I've got the example working now in Release mode. It took me a while to realise that I had to add ".main" to the package name in this bit of the code where it gets the class for the module:
/* With package name b4j.wvtest.x */
Class<?> c = Class.forName("b4j.wvtest.x.main");
I've now created a standalone package from the code. (I needed to add this property to make it build:
#PackagerProperty: IncludedModules = javafx.web
It then created my wvtest.exe file and the B4J to Webview comms worked as it should.
The Webview to B4J communication did not work though; nothing was received when I clicked either of the send buttons.
I then ran the standalone file using the .bat file and I saw the expected messages for the B4J to Webview action but there was nothing in the log when I clicked the send message button to send from the Webview to the B4J app.
Does anyone have any suggestions as to how what else might need changing?