I am getting an error message "Exception in thread "main" java.lang.NoClassDefFoundError:Projectta
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class projectta extends JFrame
{
private static final int WIDTH = 400;
private static final int HEIGHT = 300;
private JLabel directionsL;
private JtextField textTF, messageTF;
private JButton submitB, resetB, exitB;
private SubmitButtonHandler sbHandler;
private ResetButtonHandler rbHandler;
private ExitButtonHandler ebHandler;
public projectta()
{
SetTitle("click the button and enter a social security number in the format 123-45-6789");
directionsL = new JLabel("Enter a social security number here");
textTF = new JTextField (11);
messageTF = new JtextField(25);
setVisible(true);
submitB = new JButton("Submit")
sbHandler = new SubmitButtonHandler();
submitB.addActionListener(sbHandler);
resetB = new JButton("Reset")
rbHandler = new ResetButtonHandler();
resetB.addActionListener(rbHandler);
exitB = new JButton("Exit")
ebHandler = new ExitButtonHandler();
exitB.addActionListener(ebHandler);
container pane = getContentPane();
pane.setLayout(new GridLayout(6,1));
pane.add(textTF);
pane.add(messageTF);
pane.add(submitB);
pane.add(resetB);
pane.add(exitB);
setSize(WIDTH, HEIGHT);
setVisible(true);
setDefaultCloseoperation(EXIT_ON_CLOSE);
}
private class SubmitButtonHandler implements ActionListener
{
public void actionPerformed(ActionEvent e)
{
int text;
int message;
text = Integer.parseInt(textTF.getText());
message = Integer.parseInt(messageTF.getText());
validateSsn();
}
}
private class ExitButtonHandler implements ActionListener
{
public void actionPerformed(ActionEvent e)
{
System.exit(0);
}
}
private class ResetButtonHandler implements ActionListener
{
public void actionPerformed (ActionEvent e)
{
String str;
str = "";
}
}
public boolean validateSsn()
{
String str;
str = (textTF.getText());
int x;
int t;
for (t = 0; t<= str.length(); t++)
if (str.charAt(3) == '-' && str.charAT(6) == '-')
return true;
x = 0;
while (x < 3)
if (str.charAt(x) >= 0 && str.charAt(x) <= 9)
return true;
else
return false;
x = 4;
while (x < 6)
if (str.charAt(x) >= 0 && str.charAt(x) <= 9)
return true;
else
return false;
x = 7;
while (x < 11)
if (str.charAt(x) >= 0 && str.charAt(x) <= 9)
return true;
else
System.out.println("ERROR! Invalid SSN");
}
public static void main(String[] args)
{
Projectta Proj = new Projectta();
}
}