ANT build.xml 编译出错Error running javac.exe compiler
2012-11-02 08:23
711 查看
运行ANT脚本时,出现
build.xml:32Error running javac.exe compiler
或者 build.xml:97: Unable to find a javac compiler;
分析:应该是没有正确指定javac的路径,所以报找不到,查看了一下jre
Window-->Preferences-->Java-->Installed JRES,如下图:
![](http://img.my.csdn.net/uploads/201211/02/1351816175_5780.jpg)
发现里面,只是指定了JRE的目录,它里面没有javac。
修改为:
![](http://img.my.csdn.net/uploads/201211/02/1351816208_2696.jpg)
记得一定要指定为默认,即在签名勾选。
build.xml:32Error running javac.exe compiler
或者 build.xml:97: Unable to find a javac compiler;
分析:应该是没有正确指定javac的路径,所以报找不到,查看了一下jre
Window-->Preferences-->Java-->Installed JRES,如下图:
![](http://img.my.csdn.net/uploads/201211/02/1351816175_5780.jpg)
发现里面,只是指定了JRE的目录,它里面没有javac。
修改为:
![](http://img.my.csdn.net/uploads/201211/02/1351816208_2696.jpg)
记得一定要指定为默认,即在签名勾选。
相关文章推荐
- ANT build.xml 编译出错Error running javac.exe compiler
- Error running javac.exe compiler
- eclipse ant错误:ant build.xml Unable to find a javac compiler解决
- Ant编译打jar包 build.xml
- VS2008 编译出错 fatal error C1859: unexpected precompiled header error, simply rerunning the compiler might fix this problem
- 在eclipse中进行nutch1.7二次开发通过ant编译build.xml出现Class not found javac1.8
- 在Eclipse里调用ANT时,如何使javac编译出错提示为英文而非中文?
- Ant 编译时 Unable to find a javac compiler的解决(转)
- ant 编译android程序 执行build.xml文件到打包资源文件时候报错!提示找不到资源文件!
- 安卓编译错误app:compileDebugJavaWithJavac>Compilation failed; see the compiler error output for details.
- OutOfMemoryError: Java heap space和GC overhead limit exceeded在Ant的Build.xml中的通用解决方案
- 编译出错:fatal error C1001: INTERNAL COMPILER ERROR 和 链接出错 unresolved external symbol _WinMain@16
- JAVA -- ant编译时出现Compile failed; see the compiler error output for details异常
- ant打包出错 ant\build.xml:698: null returned: 1
- AndroidSDK内置ANT编译build.xml
- ant编译失败Error starting modern compiler解决方法
- 使用友元,编译出错fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'msc1.cpp', line 1786) 的解决
- cocos2dx 编译错误 BUILD FAILEDG:\android\SDK\android-sdk-windows\tools\ant\build.xml:645: The following
- Ant编译生成war文件的build.xml文件示例
- eclipse编译maven项目出错- No compiler is provided in this environment. Perhaps you are running on a JRE ra