Note that there are some explanatory texts on larger screens.

plurals
  1. POmethod must call super() error in Netbeans
    primarykey
    data
    text
    <p>Recently I've made a Netbeans project and I am using SVN along with it. I am seeing duplicate class error, and in the console it says</p> <p><code>java.lang.VerifyError: (class: pie/chart/explorer/PieChartExplorer, method: &lt;init&gt; signature: ()V) Constructor must call super() or this()<br> Could not find the main class: pie.chart.explorer.PieChartExplorer. Program will exit.<br> Exception in thread "main" Java Result: 1</code></p> <p>Here is PieChartExplorer.java:</p> <pre><code>package pie.chart.explorer; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.*; public class PieChartExplorer extends JFrame implements ActionListener { JTextField one = new JTextField(10); JTextField two = new JTextField(10); JTextField three = new JTextField(10); JButton sub = new JButton("Click to be amazed"); public PieChartExplorer() { super("Pie Chart Explorer"); setSize(300,100); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); FlowLayout flo = new FlowLayout(); setLayout(flo); setVisible(true); add(one); add(two); add(three); sub.addActionListener(this);; add(sub); } public static void main(String[] args) { PieChartExplorer app = new PieChartExplorer(); } @Override public void actionPerformed(ActionEvent e) { Object source = e.getSource(); if(source == sub) { try { Pie show = new Pie(Float.parseFloat(one.getText()),Float.parseFloat(two.getText()),Float.parseFloat(three.getText())); } catch(Exception ex) { JOptionPane.showMessageDialog(this, "Please check entered data"); } } } } </code></pre> <p>I have tried: </p> <ol> <li>Clean and Rebuild project</li> <li>Making sure that I have called super in all constructors</li> </ol> <p>How can this be fixed? <a href="http://www.mediafire.com/?kby3dfjqz99jui8">Code for download</a>. </p>
    singulars
    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.
 

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