Question

In lot of cases there is no need for classes to be explicitly compiled(i.e. running unit tests - I want them to be just runnable, not necessarily to be compiled & packaged).

I'm curious if there is any library for interpreting java.

Scala(static typed, runs on jvm) has interpreter built-in so in my understanding it should technically possible for java as well.

Was it helpful?

Solution

You can go a look at BeanShell. It's a Java interpreter. It may be a bit dated, I don't know if it supports generics for example, but you should take a look at it. It probably fits what you want to do.

OTHER TIPS

Take a look on beanshell (http://www.beanshell.org).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top