Ant 編譯出現:Error starting modern compiler

我經過ant,執行start的時候就出現下面問題,,我用的是ant 1.7.0,jikes1.22,jdk1.6.1,爲何出下如下問題,誰能來救救我,html

Buildfile: D:\liferay\portal\build.xmljava

start:eclipse

compile:ui

compile:this

[javac] Compiling 232 source files to D:\liferay\portal\portal-kernel\classesxml

BUILD FAILEDhtm

D:\liferay\portal\build.xml:15: The following error occurred while executing this line:blog

D:\liferay\portal\build.xml:230: The following error occurred while executing this line:ip

D:\liferay\portal\portal-kernel\build.xml:23: Error starting modern compiler文檔

Total time: 18 seconds

-----------------------------------------

我也遇到過這個問題,修改下面的就可解決問題

在這個文件中build.properties

修改編譯器的類型

#javac.compiler=modern

javac.compiler=jikes

--------------------------------------

我用的Jdk是1.6,在MyEclipse下編譯Liferay4.3也遇到過這個問題,解決方法以下:

從JDK 1.5的類庫中copy了一個tool.jar,放在個人C:\Program Files\MyEclipse 6.0\jre\lib\ext路徑中,就OK了。緣由是ant還不能支持JDK 1.6。

源文檔 <http://hi.baidu.com/jojin18/blog/item/dba49d005a1a15011d95833c.html>

閱讀全文
類別: jboss+ejb+myeclipse  查看評論
相關文章
相關標籤/搜索