运行Netbeans 6.8应用程序时出现NoClassDefFoundError [英] NoClassDefFoundError when running Netbeans 6.8 application

查看:160
本文介绍了运行Netbeans 6.8应用程序时出现NoClassDefFoundError的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我从NetBeans中运行应用程序时,我的应用程序最近开始引发NoClassDefFoundError错误.它从来没有这样做过.

My application has recently started throwing NoClassDefFoundError errors when I am running my application from within NetBeans. It never used to do this.

当我使用NetBeans在构建后提供的命令行参数在NetBeans外部运行此命令时,不会产生这些错误

And when I run this outside of NetBeans using the command line argument that it provides once built, these errors are not produced

这是Netbeans的错误吗?

Is this a bug with Netbeans?

我已经重新安装了NetBeans,因为最近有另一个通过重新安装已解决的问题,但是问题仍然存在.

I have reinstalled NetBeans as I recently had another that was resolved by reinstalling, however the problem still persists.

符号将共享项目添加到库中时,使用netbeans 6.8的Java应用程序出现错误

在Netbeans中

替代文本http://inverse.seednet.eu/snaps/ojtjal.png

NetBeans外部 替代文本http://inverse.seednet.eu/snaps/gdwb5y.png

推荐答案

问题是从netbeans运行配置时,运行配置的运行时类路径.确保您的运行配置具有包含这些类的jar

The issue is the run time classpath of the run configuration when you are running it from netbeans. Make sure your run config has the jar containing these classes

这篇关于运行Netbeans 6.8应用程序时出现NoClassDefFoundError的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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