Ant 编译出现:Error starting modern compiler
2010-10-19 13:07
267 查看
我通过ant,执行start的时候就出现下面问题,,我用的是ant 1.7.0,jikes1.22,jdk1.6.1,为什么出下以下问题,谁能来救救我,
Buildfile: D:\liferay\portal\build.xml
start:
compile:
compile:
[javac] Compiling 232 source files to D:\liferay\portal\portal-kernel\classes
BUILD FAILED
D:\liferay\portal\build.xml:15: The following error occurred while executing this line:
D:\liferay\portal\build.xml:230: The following error occurred while executing this line:
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 查看评论
Buildfile: D:\liferay\portal\build.xml
start:
compile:
compile:
[javac] Compiling 232 source files to D:\liferay\portal\portal-kernel\classes
BUILD FAILED
D:\liferay\portal\build.xml:15: The following error occurred while executing this line:
D:\liferay\portal\build.xml:230: The following error occurred while executing this line:
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 查看评论
相关文章推荐
- ant编译出现问题 Error starting modern compiler
- ant编译失败Error starting modern compiler解决方法
- 在ECLIPSE下使用ANT编译报:Error starting modern compiler
- ant 编译 ejb 时 Error starting modern compiler
- JAVA -- ant编译时出现Compile failed; see the compiler error output for details异常
- ANT报 Error starting modern compiler
- ANT报 Error starting modern compiler
- ANT build.xml 编译出错Error running javac.exe compiler
- 编译Linux内核出现include/linux/compiler-gcc.h:106:30: fatal error: linux/compiler-gcc5.h错误
- Error starting modern compiler
- Error starting modern compiler
- ANT build.xml 编译出错Error running javac.exe compiler
- 龙芯编译tslib-master出现 error: C compiler cannot create executables
- Error starting modern compiler
- configure编译时,出现 configure: error: C compiler cannot create executables错误解决
- SmartARM2200中编译minigui应用程序时出现错误error: C compiler cannot create executables
- 使用ant编译Java编程思想出现时 java.lang.UnsupportedClassVersionError: Bad version number in .class问题
- 实现java接口的实现类中添加@Override,编译过程中出现Error:java: Compilation failed: internal java compiler error
- ndk R7d编译调试包时出现internal compiler error: in reload, at reload1.c:1173
- configure编译时,出现 configure: error: C compiler cannot create executables错误解决 .