修改build.properties文件,将如下注释掉和去掉注释
# javac.compiler=modern // 注释掉
javac.compiler=org.eclipse.jdt.core.JDTCompilerAdapter // 去掉注释
参考:
Liferay IDE - Error running javac.exe compiler
http://cjh820425.iteye.com/blog/978392
官方论坛给出的方案:
##
## Compiler
##
....
javac.compiler=modern
#javac.compiler=org.eclipse.jdt.core.JDTCompilerAdapter
## Compiler
##
....
javac.compiler=modern
#javac.compiler=org.eclipse.jdt.core.JDTCompilerAdapter
change to
#javac.compiler=modern
javac.compiler=org.eclipse.jdt.core.JDTCompilerAdapter
javac.compiler=org.eclipse.jdt.core.JDTCompilerAdapter