JSR223 Java Scripting - some demo code

I also did this work once with the Kotlin JSR223 engine and got some simple file loaded and executed, but in the end I had to stop due to a restriction within the Kotlin engine code that prevented the access to OH core classes (OSGI and classloaders is a lot of fun, I spent hours trying to understand how this works :stuck_out_tongue: ). I hope you don’t hit a similar wall with the java engine.

Why don’t you use the Groovy engine? Its close enough to Java (I’m in the same situation as you, Java developer, wanting to use the IDE, etc.) and works.
Here are some quite fresh links with some info, I have the feeling there is some movement going on… a year ago I felt I was one of 3 guys using Groovy at all.