Java - dynamic compilation without JDK

im knows that j2se 6 introduced the JavaCompiler API; however, it is cumbersome to use and require a JDK, not a JRE.

Is it possible to perform dynamic compilation without the JDK? (they are very interested in the "all in memory" compilation.)

In addition, I expect performance to be close to raw java code, so I don't want to use a scripting language like BeanShell or Groovy.

thank.

+3
source share
1 answer

You may be interested in Janino , in particular SimpleCompiler . You can use the Reader and constructor to compile in memory StringReader.

+3

Source: https://habr.com/ru/post/1752402/


All Articles