构建java项目时出错
我尝试在 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 等...但我无法解决此错误。 有人知道我该如何解决它吗?
一切顺利!
莱安德罗
I have tryied to build my project in netbeans 6.8/ windows xp, and I've received this errors:
..\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.
The lines are, respectively:
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}">
I have tried to reinstall netbeans, java, and anything more...but I can't resolve this error.
Do someone know how can I fix it?
All the best!
Leandro
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
有时,Netbeans 会搞砸构建文件的生成
(从
build.xml
生成build-impl.xml
)。如果可能有助于删除buid-impl.xml,请关闭项目,重新启动Netbeans,打开项目。但在某些情况下,Netbeans 无法重新生成此文件。
在大多数情况中有用的是:
(尝试使用重构,但如果失败,请尝试不使用重构。);
Sometimes, Netbeans screws up the build file generation
(generation of
build-impl.xml
frombuild.xml
).If may help to remove buid-impl.xml, close project, restart Netbeans, open project. But in some cases Netbeans fails to regenerate this file.
What will help in most cases is:
(try with refactoring, but when fails, try without.);
好的,已经解决了。我还没有看到一个警告是针对未找到库的。我只是将该库提供给 netbeans,并且我的代码编译得很好。
对不起各位
莱安德罗.
Ok, it's resolved. I haven't seen that one warning was for a library not found. I just give to netbeans that library and my code is compiled well.
Sorry guys
Leandro.