现在的位置: 首页 > 综合 > 正文

java.lang.ClassNotFoundException: com.sun.tools.javac.Main (Liferay运行ant build.xml执行错误)

2012年06月03日 ⁄ 综合 ⁄ 共 399字 ⁄ 字号 评论关闭

修改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

change to 

    #javac.compiler=modern
    javac.compiler=org.eclipse.jdt.core.JDTCompilerAdapter

抱歉!评论已关闭.