Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/360.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java项目正在运行,但当我';我正在尝试构建它我在startsWith(NetBeans)上有NullPointerException_Java_Netbeans_Nullpointerexception - Fatal编程技术网

Java项目正在运行,但当我';我正在尝试构建它我在startsWith(NetBeans)上有NullPointerException

Java项目正在运行,但当我';我正在尝试构建它我在startsWith(NetBeans)上有NullPointerException,java,netbeans,nullpointerexception,Java,Netbeans,Nullpointerexception,我还有一个问题。当我从NetBeans IDE运行项目时,一切都很好。但当我试图构建项目时,我有一个例外: Compiling 2 source files to D:\JAVA\Projects\streamer\build\classes An exception has occurred in the compiler (1.7.0-ea). Please file a bug at the Java Developer Connection (http://java.sun.com/we

我还有一个问题。当我从NetBeans IDE运行项目时,一切都很好。但当我试图构建项目时,我有一个例外:

Compiling 2 source files to D:\JAVA\Projects\streamer\build\classes
An exception has occurred in the compiler (1.7.0-ea). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport)  after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report.  Thank you.
java.lang.NullPointerException
    at java.lang.String.startsWith(String.java:1433)
    at java.lang.String.startsWith(String.java:1462)
    at com.sun.tools.javac.file.SymbolArchive.addZipEntry(SymbolArchive.java:49)
    at com.sun.tools.javac.file.ZipArchive.<init>(ZipArchive.java:63)
    at com.sun.tools.javac.file.SymbolArchive.<init>(SymbolArchive.java:41)
............
D:\JAVA\Projects\streamer\nbproject\build-impl.xml:603: The following error occurred while executing this line:
D:\JAVA\Projects\streamer\nbproject\build-impl.xml:245: Compile failed; see the compiler error output for details.

节点名不为空。我不明白哪里有错误:(

你是故意使用Java 7的吗?试试Java 6-它应该更稳定。看这里,

错误在编译器中,就像异常所说的那样。你为什么要使用Java 1.7?

因为它安装在我的工作站上。我会尝试使用Java 1.6并编写会发生什么。我最初不是Java程序员,我想,我必须阅读som有关它的电子书,以便进一步编程:)看这里,所有这些都完成了JRE 1.6中的两个注释:AppNormaliser.java使用未经检查或不安全的操作。注意:使用-Xlint重新编译:未经检查了解详细信息。
int lastIndex = nodeName.indexOf("date",0);
if (lastIndex != -1 || nodeName.equals("birthday")) {
    txt_val = getHash(txt_val,Boolean.TRUE);
} else {
    txt_val = getHash(txt_val,Boolean.FALSE);
}