views:

204

answers:

1

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

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

Is this a bug with Netbeans?

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

http://stackoverflow.com/questions/2654892/symbol-error-in-java-application-using-netbeans-6-8-when-adding-a-shared-project

Within Netbeans

alt text

Outside NetBeans alt text

+1  A: 

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

Fazal
That fixed the issue! - It's odd how it randomly stopped working, and didn't pick up the libraries from the build path... hmm
Malachi
And now for some reason that has stopped working :/ even though the run time classpath has the jar files... proper odd http://inverse.seednet.eu/snaps/pptnac.png
Malachi