颠覆 NoClassFoundDefError

发布于 2024-10-07 18:08:28 字数 370 浏览 0 评论 0原文

使用 subversion 时,将多个文件放入 1 个包中。 此时一切都进展顺利。

后来有人用另外 5 个软件包替换了该软件包,并将所有文件分给了它们。

现在“更新”后,正确的文件确实出现了。 1 个包的名称消失了。

但现在我不断收到错误:“java.lang.NoClassDefFoundError/第一个包名称/Main

其中第一个包代表早已被删除的包。 对于改变这个的人来说,这个程序运行得很好。

当我再次删除每个包并将其全部替换为 1 个包(就像开始时一样)时,我只能编译该程序......

几乎尝试了所有方法,重新安装,清理并重新安装。构建等...

任何输入表示赞赏。

While using subversion several files where placed into 1 package.
Every thing was working perfectly at this point.

Afterwards somebody replaced that package with 5 other ones and divided all the files amongst them.

And now after "updating" the proper files do appear. With the name of the 1 package gone.

But now i keep getting the error:“java.lang.NoClassDefFoundError/first package name/Main

Where the first package stands for the package that has long been deleted.
For the person who changed this, the program just works fine.

I can only get to compile the program when i delete every package again and replace all of it with 1 package like it was at the start...

Pretty much tried everything, re-install, clean & build, etc...

Any input appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

以往的大感动 2024-10-14 18:08:28

尝试在项目目录中搜索包含旧包名称的文件。看起来一些不受版本控制的项目元数据未更新。然后在 Netbeans 中找到并修复它,或者关闭 Netbeans 并直接编辑文件(当然,首先备份)。

Try searching for files in your project directory containing the old package name. Looks like some project metadata that's not under version control wasn't updated. Then either find and fix it in Netbeans or close Netbeans and edit the files directly (backup first, of course).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文