开发者

How to dynamically compile Java classes in Google App Engine

开发者 https://www.devze.com 2023-02-22 08:03 出处:网络
In answers to this question, I learned that it is not possible to invoke the Java Compiler in javax.tools from a GAE app.

In answers to this question, I learned that it is not possible to invoke the Java Compiler in javax.tools from a GAE app.

  • Does this limitation still apply?

  • If so, what are my options for compiling Java source code into loadable class files "on the开发者_运维知识库 fly"?


No, javax.tools is still not on the Appengine's JRE Class Whitelist.

The options you have are:

  1. Compile somewhere else and than transfer and load .class files on appengine.

  2. Try using one of embeddable Java compilers: Janino, JDT.

  3. If you can live without Java, than you might try using BeanShell for Appengine.

0

精彩评论

暂无评论...
验证码 换一张
取 消