每天都有来自每个班级的java.lang.NoClassDefFoundError [英] java.lang.NoClassDefFoundError from every class every day

查看:100
本文介绍了每天都有来自每个班级的java.lang.NoClassDefFoundError的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试重新安装netbeans,我尝试重新安装java。我不确定发生了什么但我从每个班级中随机获得此异常,直到我重新启动netbeans。有类似问题的人?

I have tried reinstalling netbeans, I have tried reinstalling java. I'm not sure what's going on but I get this exception at random from every class until I restart netbeans. Anyone with similar problems?

运行:

Exception in thread "main" java.lang.NoClassDefFoundError: com/company/utilities/formatters/DateFinder
    at com.protocase.db.DatabaseAdapter.<init>(DatabaseAdapter.java:44)
    at packagingqueries.PackagingQueries.getBatchIDsForOperation(PackagingQueries.java:42)
    at packagingqueries.PackagingQueries.main(PackagingQueries.java:20)
Caused by: java.lang.ClassNotFoundException: com.protocase.utilities.formatters.DateFinder
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)


推荐答案

有时,NetBeans本地缓存目录已损坏(因为应用程序先前崩溃或因为发生了其他/未定义的事件)。 NetBeans开始表现得很奇怪。重新安装没有帮助,因为并不总是删除本地缓存目录。

Sometimes, the NetBeans local cache directory becomes corrupted (either because the application crashed earlier or because something else/undefined happened). NetBeans starts to behave strangely. Re-installing does not help, because the local cache directory is not always deleted.

如果您100%确定您的应用程序没有路径问题:

If you are 100% sure your application does not have a path problem:


  1. 关闭NetBeans

  2. 如果您在Windows上,请转到c:\ Users \youruserid \。 netbeans \7.0(否则找到系统上的相应目录)

  3. 完全删除内容

  4. 重新启动NetBeans

  1. Close NetBeans
  2. If you are on Windows go to c:\Users\youruserid\.netbeans\7.0 (else find the corresponding directory on your system)
  3. Delete the content completely
  4. Restart NetBeans

NetBeans将重新创建此目录的内容。这个可以解决您的问题。如果没有,那么您的问题在于您的应用程序的配置或肯定在损坏的库中。

NetBeans will recreate the content of this directory. This may solve your issue. If it does not, then your issue is in the configuration of your application or in a corrupted library for sure.

如果存储这些文件的位置空间不足对于写作,这个问题可能会出现。像往常一样,人们需要腾出空间......

If the location where these files are stored runs out of space for writing, this problem can arise. As usual, one needs to make space...

这篇关于每天都有来自每个班级的java.lang.NoClassDefFoundError的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆