employee progarm
Hai,
I have developed a code for an employee program by using jtext fields and buttons,it has no errors but while we are compiling it it is saying that "Exception in thread "main" java.lang.NoClassDefFoundError: Emp/java".Why it is saying like this?The code which i developed is as follows
import java.io.*;
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
class Emp
{
JFrame f;
JPanel p;
JLabel l1,l2,l3,l4,l5,l6,l7,l8,l9,l10;
JTextField tf1,tf2,tf3,tf4,tf5,tf6,tf7,tf8,tf9,tf10;
JButton submitBtn;
JButton resetBtn;
Emp()
{
f=new JFrame("EmpDetails");
l1=new JLabel("EmployeeID:");
l2=new JLabel("EmployeeName:");
l3=new JLabel("Wonno:");
l4=new JLabel("Fromdate:");
l5=new JLabel("Todate:");
l6=new JLabel("Noofdays:");
l7=new JLabel("Leavetype:");
l8=new JLabel("Project:");
l9=new JLabel("Approvername:");
l10=new JLabel("Sendmailto:");
tf1=new JTextField(12);
tf2=new JTextField(12);
tf3=new JTextField(12);
tf4=new JTextField(12);
tf5=new JTextField(12);
tf6=new JTextField(12);
tf7=new JTextField(12);
tf8=new JTextField(12);
tf9=new JTextField(12);
tf10=new JTextField(12);
submitBtn=new JButton("Submit ");
resetBtn=new JButton(" Reset");
p.add(l1);
p.add(tf1);
p.add(l2);
p.add(tf2);
p.add(l3);
p.add(tf3);
p.add(l4);
p.add(tf4);
p.add(l5);
p.add(tf5);
p.add(l6);
p.add(tf6);
p.add(l7);
p.add(tf7);
p.add(l8);
p.add(tf8);
p.add(l9);
p.add(tf9);
p.add(l10);
p.add(tf10);
p.add(submitBtn);
p.add(resetBtn);
tf1.setText("");
tf2.setText("");
tf3.setText("");
tf4.setText("");
tf5.setText("");
tf6.setText("");
tf7.setText("");
tf8.setText("");
tf9.setText("");
tf10.setText("");
}
}
Please slove this problem as soon as possible.
Thanks and Regards,
Madhuri.
View Answers
February 10, 2012 at 3:47 PM
February 13, 2012 at 12:14 PM
i don't want the program actually i want yuo rectify the error.If it possible for you to rectify the error in my program please kindly do it..
thanks.
Related Tutorials/Questions & Answers:
employee progarmemployee progarm Hai,
I have developed a code for an
employee program by using jtext fields and buttons,it has no errors but while we are compiling it it is saying that "Exception in thread "main
Advertisements
Employee SalariesEmployee Salaries Define a class
Employee with the following properties. Every
Employee has a name and a salary. The constructor creates an
Employee... the salary of the
Employee to zero. The method getinfo() will return the current
EMPLOYEE - SQLEMPLOYEE CALCULATE
EMPLOYEE SALARY Hi friend,
Please give the full details of Problem.
Thanks
Employee formEmployee form In
employee form emp Id id after any data iserted is incremented for oher data insertion. insert, delete, update buttons when we cleak the select buttoun then the created table data iserted automaticaly
employee recordsemployee records Pl give one script like i will creat one table name Emp_master
and column name like Empcode, Empname.
I like one form where I...
and one report like details of
employee
thanks
employee recordsemployee records Pl give one script like i will creat one table name Emp_master
and column name like Empcode, Empname.
I like one form where I...
and one report like details of
employee
thanks
employee recordsemployee records Pl give one script like i will creat one table name Emp_master
and column name like Empcode, Empname.
I like one form where I...
and one report like details of
employee
thanks
Employee SalariesEmployee Salaries Define a class
Employee with the following properties. Every
Employee has a name and a salary. The constructor creates an
Employee... the salary of the
Employee to zero. The method getinfo() will return the current
Employee SalariesEmployee Salaries Define a class
Employee with the following properties. Every
Employee has a name and a salary. The constructor creates an
Employee... the salary of the
Employee to zero. The method getinfo() will return the current
Employee SalariesEmployee Salaries Define a class
Employee with the following properties. Every
Employee has a name and a salary. The constructor creates an
Employee... the salary of the
Employee to zero. The method getinfo() will return the current
Employee SalariesEmployee Salaries Define a class
Employee with the following properties. Every
Employee has a name and a salary. The constructor creates an
Employee... the salary of the
Employee to zero. The method getinfo() will return the current
Employee SalariesEmployee Salaries Define a class
Employee with the following properties. Every
Employee has a name and a salary. The constructor creates an
Employee... the salary of the
Employee to zero. The method getinfo() will return the current
display the employee namedisplay the
employee name when i will select one
employee designation based on that
employee designation display the particular designation
employee name display in another select box how it possible using servlet and mysql
program on employee detailsprogram on
employee details to write a program on displaying the
employee details like empid,empname,wonno,location,leave type by using the text fields in java swings
Auto Generated Employee IDAuto Generated
Employee ID Hello Everyone
I want to generate an ID like (SCS-0001) and then it should be auto incremented each time a new
employee add page is opens.
I am using My Sql database
compute the daily wage of an employee. compute the daily wage of an
employee. B. Write a JavaScript program that would input
Employee Name, Rate per hour, No. of hours worked and will compute the daily wage of an
employee. If the number of hours worked exceeds
compute the daily wage of an employee. compute the daily wage of an
employee. B. Write a JavaScript program that would input
Employee Name, Rate per hour, No. of hours worked and will compute the daily wage of an
employee. If the number of hours worked exceeds
Generate Employee ID (SCS-0001,SCS-0002......)Generate
Employee ID (SCS-0001,SCS-0002......) Hello everyone i am beginner in java and i am working on my major project
I want to generate bill number and
employee number like SCS-0001 and so on and bill number like SCS/'date
Employee Details - JSP-ServletEmployee Details Respected Sir/Madam,
Thanks for your response. Regarding that alert box problem what I have decided is to include the contents of process.jsp in the home page itself without any submit button
to write a program to display the employee details..to write a program to display the
employee details.. To dipslay the
employee details like empid,empname,salary,wonno bye using java swings.by... the
employee details.please send me the code .it's urgent.send me as soon as possible