There’s also Beanshell, or if you’re using 1.6 then there’s the new Compiler API. Although if you’re not set on using the java syntax then there are nicer options like Jython or Groovy which can be nicer for scripting in.
Thanks, yeah I’ve used BeanShell before but it looks inferior to Janino since BeanShell code isn’t JIT’ed unlike Janino code which turns your script into proper byte code.
Since I don’t know any other language except java i’ll have to steer clear of Jython and friends 
Thanks for the heads-up.
I’m a little surprised at how under-marketed Janino is, because it seems a lot better than most scripting libs in terms of speed and compatibility for how closely it mirrors the java language (beanshell has lots of weird quirks). But for some reason beanshell is much better-known.
Further, the new Compiler interface in Java 1.6 is very slow (just like javac).
It seems to parse rt.jar for every compilation? :persecutioncomplex:
Janino is must faster, like 200ms after the first compile.
On the downside, janino doesn’t support static imports IIRC, and makes the Java Bytecode Verifier bark sometimes, when your Java sourcecode is wrong, but the Janino compiler accepts it.
Yeah I’ve been using Javac, and it’s definitely not incredibly fast on compilation. I’ll check out Janino in the future.