NoClassDefFoundError error on Mac with NetBeans
<p>I am getting a <code>NoClassDefFoundError</code> error when I run my program. Here is the stack trace:</p>

<pre class="lang-none prettyprint-override"><code>Exception in thread "main" java.lang.NoClassDefFoundError: ex7/Ex7
Caused by: java.lang.ClassNotFoundException: ex7.Ex7
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Java Result: 1
</code></pre>

<p>How do I fix this? I'm on a Mac and running NetBeans.</p>
