First I had to find the coresponding class of the jjs tool. I’m not sure I found the right one, but I did find a Shell class within the nashorn.jar file. Starting that class within intelliJ provided me a shell which was called jjs (so it cannot be that wrong). Sadly, not all the command line parameters that jjs has, worked on this class. Especially the “-e” was missing. That parameter is used to evaluate whatever inline script given through this parameter. Instead I had to fallback to files, to provide the launcher code for my actual application. This is what the launch configuration in intelliJ looks like.
var args =["-cq","-cs","-ll","debug","-p","/Users/jens/tmp/store","-t","1m"]; Java.type("io.trivium.Start").main(args);
Including this script, the launch configuration had to be adjusted with the correct script filename.
So now I could start my application through the launch configuration and in effect have a shell to interact with my code base at run-time.