Embed Kotlin REPL in Java app?

Hi,

I have a web app (written in Java, deployed as war file in app server) and I’d like to telnet to it and run code snippets at a console, to adjust configuration at runtime. Is there an API that lets you create a Kotlin REPL and attach it to some Input/OutputStreams?

Rob

No, there is no such API at this time. Kotlin supports JSR-223 scripting, so you may be able to build your own REPL implementation on top of that.