开发者

How to dynamically compile Java classes in Google App Engine

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜