Note that there are some explanatory texts on larger screens.

plurals
  1. POjava.lang.NoClassDefFoundError: calcmedii/CalcMediiApp?
    primarykey
    data
    text
    <p>Hello I'm a beginner with NetBeans. I'm using Netbeans 7.0.1 and I've recently started designing a simple program. When I try to run the program in NetBeans it shows the following errors in console:</p> <pre><code>java.lang.NoClassDefFoundError: calcmedii/CalcMediiApp Caused by: java.lang.ClassNotFoundException: calcmedii.CalcMediiApp 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) Could not find the main class: calcmedii.CalcMediiApp. Program will exit. Exception in thread "main" Java Result: 1 </code></pre> <p>I should mention the code shows no compilation errors whatsoever, I've run this program, but after I've added some radio buttons and a jraddiobuttongroup and added some events that make some elements invisible and visible it displays these errors.</p> <p>This is the only piece of code I've written before the error. The entire code of the program is huge so I'll just paste this bit which might cause these errors:</p> <pre><code> private void jRadioButton2ActionPerformed(java.awt.event.ActionEvent evt) { jLabel6.setVisible(true); jLabel7.setVisible(false); jLabel8.setVisible(false); jLabel9.setVisible(false); jLabel10.setVisible(false); jFormattedTextField4.setVisible(true); jFormattedTextField5.setVisible(false); jFormattedTextField6.setVisible(false); jFormattedTextField7.setVisible(false); jFormattedTextField8.setVisible(false); } private void jRadioButton2ItemStateChanged(java.awt.event.ItemEvent evt) { jLabel6.setVisible(true); jFormattedTextField4.setVisible(true); } private void jRadioButton1ActionPerformed(java.awt.event.ActionEvent evt) { jLabel6.setVisible(false); jLabel7.setVisible(false); jLabel8.setVisible(false); jLabel9.setVisible(false); jLabel10.setVisible(false); jFormattedTextField4.setVisible(false); jFormattedTextField5.setVisible(false); jFormattedTextField6.setVisible(false); jFormattedTextField7.setVisible(false); jFormattedTextField8.setVisible(false); } private void jRadioButton3ActionPerformed(java.awt.event.ActionEvent evt) { jLabel6.setVisible(true); jLabel7.setVisible(true); jLabel8.setVisible(false); jLabel9.setVisible(false); jLabel10.setVisible(false); jFormattedTextField4.setVisible(true); jFormattedTextField5.setVisible(true); jFormattedTextField6.setVisible(false); jFormattedTextField7.setVisible(false); jFormattedTextField8.setVisible(false); } private void jRadioButton4ActionPerformed(java.awt.event.ActionEvent evt) { jLabel6.setVisible(true); jLabel7.setVisible(true); jLabel8.setVisible(true); jLabel9.setVisible(false); jLabel10.setVisible(false); jFormattedTextField4.setVisible(true); jFormattedTextField5.setVisible(true); jFormattedTextField6.setVisible(true); jFormattedTextField7.setVisible(false); jFormattedTextField8.setVisible(false); } private void jRadioButton5ActionPerformed(java.awt.event.ActionEvent evt) { jLabel6.setVisible(true); jLabel7.setVisible(true); jLabel8.setVisible(true); jLabel9.setVisible(true); jLabel10.setVisible(false); jFormattedTextField4.setVisible(true); jFormattedTextField5.setVisible(true); jFormattedTextField6.setVisible(true); jFormattedTextField7.setVisible(true); jFormattedTextField8.setVisible(false); } private void jRadioButton6ActionPerformed(java.awt.event.ActionEvent evt) { jLabel6.setVisible(true); jLabel7.setVisible(true); jLabel8.setVisible(true); jLabel9.setVisible(true); jLabel10.setVisible(true); jFormattedTextField4.setVisible(true); jFormattedTextField5.setVisible(true); jFormattedTextField6.setVisible(true); jFormattedTextField7.setVisible(true); jFormattedTextField8.setVisible(true); } </code></pre> <p>Please help I have no idea what to do.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload