0

我尝试在 netbeans 6.8/windows xp 中构建我的项目,但我收到了以下错误:

..\nbproject\build-impl.xml:452: The following error occurred while executing this line:

..\nbproject\build-impl.xml:224: Compile failed; see the compiler error output for details.output for details.

这些行分别是:452:

`<j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/>`

224:

<javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}">

我试图重新安装 netbeans、java 和其他任何东西......但我无法解决这个错误。有人知道我该如何解决吗?

一切顺利!

莱安德罗

4

2 回答 2

1

有时,Netbeans 搞砸了构建文件的生成
build-impl.xmlfrom的生成build.xml)。

如果可能有助于删除 buid-impl.xml,关闭项目,重新启动 Netbeans,打开项目。但在某些情况下,Netbeans 无法重新生成此文件。

在大多数情况下会有所帮助的是:

  • 在不同的位置创建项目(如果您愿意,可以使用相同的名称);
  • 打开新旧项目;
  • 从旧项目复制所有包,并粘贴到新项目(尝试重构,但失败时尝试不重构。);
  • 将旧项目中的所有项目设置手动采用到新项目中。
  • 忘记旧项目并将其删除;)
于 2010-06-09T18:13:27.907 回答
0

好的,已经解决了。我还没有看到一个警告是针对未找到的库。我只是给netbeans那个库,我的代码编译得很好。

对不起,莱安德罗。

于 2010-06-09T18:13:15.207 回答