java 蚂蚁抛出错误“java返回1”

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/27947329/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-11-02 12:41:30  来源:igfitidea点击:

ant throwing an error "java returned 1"

javaant

提问by user3630022

So I am trying to build a repository and on using "ANT", i get the following error:

所以我正在尝试构建一个存储库并使用“ANT”,我收到以下错误:

Copying 1851 files to F:\GitHub\appinventor-sources\appinventor\appengine\build\war         CheckYaClientApp: YaClientApp: 
[java] Jan 14, 2015 10:33:52 AM java.util.prefs.WindowsPreferences 
[java] WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5. 
[java] Compiling module com.google.appinventor.YaClient 
[java] [ERROR] Unexpected internal compiler error 
[java] java.lang.RuntimeException: Unable to write to byte cache 
[java] at com.google.gwt.dev.util.DiskCache.writeByteArray(DiskCache.java:219) 
[java] at com.google.gwt.dev.javac.CompiledClass.(CompiledClass.java:106) 
[java] at com.google.gwt.dev.javac.JdtCompiler$CompilerImpl.createCompiledClass(JdtCompiler.java:266) 
[java] at com.google.gwt.dev.javac.JdtCompiler$CompilerImpl.process(JdtCompiler.java:239) 
[java] at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:444) 
[java] at com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java:718) 
[java] at com.google.gwt.dev.javac.CompilationStateBuilder$CompileMoreLater.compile(CompilationStateBuilder.java:248) 
[java] at com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationStateBuilder.java:463) 
[java] at com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:388) 
[java] at com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:373) 
[java] at com.google.gwt.dev.Precompile.precompile(Precompile.java:246) 
[java] at com.google.gwt.dev.Precompile.precompile(Precompile.java:229) 
[java] at com.google.gwt.dev.Precompile.precompile(Precompile.java:141) 
[java] at com.google.gwt.dev.Compiler.run(Compiler.java:232) 
[java] at com.google.gwt.dev.Compiler.run(Compiler.java:198) 
[java] at com.google.gwt.dev.Compiler.run(Compiler.java:170) 
[java] at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:88) 
[java] at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger (CompileTaskRunner.java:82) 
[java] at com.google.gwt.dev.Compiler.main(Compiler.java:177) 
[java] Caused by: java.io.IOException: There is not enough space on the disk 
[java] at java.io.RandomAccessFile.writeBytes0(Native Method) 
[java] at java.io.RandomAccessFile.writeBytes(RandomAccessFile.java:520 ) 
[java] at java.io.RandomAccessFile.write(RandomAccessFile.java:537) 
[java] at com.google.gwt.dev.util.DiskCache.writeByteArray(DiskCache.ja va:216) 
[java] ... 18 more BUILD FAILED

F:\GitHub\appinventor-sources\appinventor\build.xml:16: The following error occu rred while executing this line: F:\GitHub\appinventor-sources\appinventor\appengine\build.xml:364: Java returned : 1

What am I missing?

我错过了什么?

回答by Andrzej Doyle

Your error message contains the answer to your question:

您的错误消息包含您问题的答案:

Caused by: java.io.IOException: There is not enough space on the disk

引起:java.io.IOException: 磁盘空间不足

Moral of the story: always read the error messages, they're there for a reason.

这个故事的寓意:总是阅读错误消息,它们存在是有原因的。

回答by Pravin

apply -verbose before the target to get more details on the error, i ran into same issue could -verbose did help me to find the root cause.

在目标之前应用 -verbose 以获取有关错误的更多详细信息,我遇到了同样的问题 -verbose 是否可以帮助我找到根本原因。