How to dynamically compile Java classes in Google App Engine

In the answers to this question, I found out that it is not possible to call the Java Compiler in javax.tools from a GAE application.

  • Is this restriction used?

  • If so, what are my options for compiling Java source code into loadable class files on the fly?

+4
source share
1 answer

No, javax.tools is still missing from the Appengine JRE class whitelist .

The options you have:

  • Compile elsewhere and then transfer and upload .class files to appengine.

  • Try using one of the embedded Java compilers: Janino , JDT .

  • If you can live without Java, you can try using BeanShell for Appengine .

+5
source

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


All Articles