Liferay+Eclipse IDE在编译service.xml时,控制台报错:
BUILD FAILED
D:\liferay\sdk\liferay-plugins-sdk-6.0.5\build-common-plugin.xml:216: The following error occurred while executing this line:
D:\liferay\sdk\liferay-plugins-sdk-6.0.5\build-common.xml:90: Error running javac.exe compiler
解决办法:
打开D:\liferay\sdk\liferay-plugins-sdk-6.0.5下的build.properties,找到
##
## Compiler
##
ant.build.javac.source=1.5
ant.build.javac.target=1.5
javac.compiler=modern
#javac.compiler=org.eclipse.jdt.core.JDTCompilerAdapter
javac.debug=on
javac.deprecation=off
javac.fork=true
javac.memoryMaximumSize=256m
javac.nowarn=on
将其改为:
##
## Compiler
##
ant.build.javac.source=1.5
ant.build.javac.target=1.5
#javac.compiler=modern
javac.compiler=org.eclipse.jdt.core.JDTCompilerAdapter
javac.debug=on
javac.deprecation=off
javac.fork=true
javac.memoryMaximumSize=256m
javac.nowarn=on
即使用eclipse内置的编译器