Can I use JavaCompiler in Google app Engine?

坚强是说给别人听的谎言 提交于 2019-12-11 04:39:04

问题


Is there a way to invoke the Java source compiler via JavaCompiler in Google App Engine?

(I didn't see any classes in javax.tools on the white list, so I'm afraid the answer is no)

UPDATE

I'm wondering how Java Server Pages work in Google App Engine, since JSPs are compiled to servlets, which obviously would require a Java compiler?


回答1:


The answer is no (AFAIK).

One reason that you don't see the javax.tools classes in the GAE JRE class whitelist is that they are not JRE classes! You need a JDK installation to use the Java development tools ... including the compiler.



来源:https://stackoverflow.com/questions/4507027/can-i-use-javacompiler-in-google-app-engine

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!