运行环境 win7 X86
我想构建一个protocol buffer的jar包出来,但是在运行的时候出现了这个异常,请问如何解决呢,先在此谢过了。
错误信息:
[INFO] Executing tasks
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 40.670s
[INFO] Finished at: Wed Jul 24 17:32:39 CST 2013
[INFO] Final Memory: 7M/18M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.3:
run (generate-sources) on project protobuf-java: An Ant BuildException has occur
ed: Execute failed: java.io.IOException: Cannot run program "..\src\protoc": Cre
ateProcess error=2, ????????? -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
xception
代码目录结构贴一下谢谢,已经找到原因了,非常感谢请问是怎么解决的?回复<aclass='referer'target='_blank'>@easymbol:是/protoc_home/src下吧如果是这个错误的话,是你的protoc.exe这个文件的位置放错了,仔细看看位置假如你的开端文件夹是protoc_home的话,那么protoc.exe是存放在/protoc_home/java/src的根目录下,这样才能生成感谢 <imgsrc="http://www.oschina.net/js/ke/plugins/emoticons/images/81.gif"alt=""/>
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。