Open GoogleCodeExporter opened 8 years ago
I finally find out that the problem is:
com.google.appengine.tools.admin.Application#compileJavaFiles()
In this method, although it's given an ApplicationProcessingOptions object
which provide the javac.exe path computed from the eclipse settings, but it is
not used. When compiling Java files, they use system java.home property instead:
private void compileJavaFiles(String classpath, File webInf, File jspClassDir,
ApplicationProcessingOptions opts) throws IOException {
JavaCompiler compiler = ToolProvider.getSystemJavaCompiler();
if (compiler == null) {
throw new RuntimeException(
"Cannot get the System Java Compiler. Please use a JDK, not a JRE.");
}
......
}
Original comment by Dollyn....@gmail.com
on 13 Nov 2014 at 12:58
Original issue reported on code.google.com by
Dollyn....@gmail.com
on 23 Oct 2014 at 7:41