employee progarm

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 progarm
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
Adding an employee
Adding an employee  coding for adding an employee
Advertisements
Add Employee
Add Employee  coding for adding an employee
Employee Salaries
Employee 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 - SQL
EMPLOYEE  CALCULATE EMPLOYEE SALARY  Hi friend, Please give the full details of Problem. Thanks
Employee form
Employee 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 records
employee 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 records
employee 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 records
employee 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 Salaries
Employee 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 Salaries
Employee 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 Salaries
Employee 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 Salaries
Employee 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 Salaries
Employee 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
application for an Employee
: in this page it should modify employee data and persist in DB 3.DISPLAY
coding for employee management system
coding for employee management system  coding for employee management system
Employee Management System
Employee Management System  coding for employee management system
Employee Management System
Employee Management System  coding for employee management system
display the employee name
display 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
Employee Management Sysem
Employee Management Sysem  coding for Daoclass Login Page Validation
program on employee details
program 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 ID
Auto 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-Servlet
Employee 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
store the employee ID,name,login time and logout time of the employee in database
store the employee ID,name,login time and logout time of the employee in database  hello...I want to store the employee ID,name,login time and logout time of the employee along with the time difference between these two
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
how to calculate the employee tax - JSP-Servlet
how to calculate the employee tax  How to calculate the employee tax.Can u please send to me calculation tables
ModuleNotFoundError: No module named 'mds-employee-timetracking'
ModuleNotFoundError: No module named 'mds-employee-timetracking'  Hi...: No module named 'mds-employee-timetracking' How to remove the ModuleNotFoundError: No module named 'mds-employee-timetracking' error? Thanks  
ModuleNotFoundError: No module named 'odoo10-addon-hr-employee-age'
ModuleNotFoundError: No module named 'odoo10-addon-hr-employee-age'  ...: No module named 'odoo10-addon-hr-employee-age' How to remove the ModuleNotFoundError: No module named 'odoo10-addon-hr-employee-age' error
ModuleNotFoundError: No module named 'odoo10-addon-hr-employee-firstname'
ModuleNotFoundError: No module named 'odoo10-addon-hr-employee-firstname' ...: ModuleNotFoundError: No module named 'odoo10-addon-hr-employee-firstname' How to remove the ModuleNotFoundError: No module named 'odoo10-addon-hr-employee-firstname
ModuleNotFoundError: No module named 'odoo10-addon-hr-employee-id'
ModuleNotFoundError: No module named 'odoo10-addon-hr-employee-id'  ...: No module named 'odoo10-addon-hr-employee-id' How to remove the ModuleNotFoundError: No module named 'odoo10-addon-hr-employee-id' error? Thanks
ModuleNotFoundError: No module named 'odoo10-addon-hr-employee-product'
ModuleNotFoundError: No module named 'odoo10-addon-hr-employee-product' ...: ModuleNotFoundError: No module named 'odoo10-addon-hr-employee-product' How to remove the ModuleNotFoundError: No module named 'odoo10-addon-hr-employee-product'
ModuleNotFoundError: No module named 'odoo10-addon-hr-employee-seniority'
ModuleNotFoundError: No module named 'odoo10-addon-hr-employee-seniority' ...: ModuleNotFoundError: No module named 'odoo10-addon-hr-employee-seniority' How to remove the ModuleNotFoundError: No module named 'odoo10-addon-hr-employee-seniority
ModuleNotFoundError: No module named 'odoo10-addon-hr-employee-age'
ModuleNotFoundError: No module named 'odoo10-addon-hr-employee-age'  ...: No module named 'odoo10-addon-hr-employee-age' How to remove the ModuleNotFoundError: No module named 'odoo10-addon-hr-employee-age' error
ModuleNotFoundError: No module named 'odoo10-addon-hr-employee-firstname'
ModuleNotFoundError: No module named 'odoo10-addon-hr-employee-firstname' ...: ModuleNotFoundError: No module named 'odoo10-addon-hr-employee-firstname' How to remove the ModuleNotFoundError: No module named 'odoo10-addon-hr-employee-firstname
ModuleNotFoundError: No module named 'odoo10-addon-hr-employee-id'
ModuleNotFoundError: No module named 'odoo10-addon-hr-employee-id'  ...: No module named 'odoo10-addon-hr-employee-id' How to remove the ModuleNotFoundError: No module named 'odoo10-addon-hr-employee-id' error? Thanks
ModuleNotFoundError: No module named 'odoo10-addon-hr-employee-product'
ModuleNotFoundError: No module named 'odoo10-addon-hr-employee-product' ...: ModuleNotFoundError: No module named 'odoo10-addon-hr-employee-product' How to remove the ModuleNotFoundError: No module named 'odoo10-addon-hr-employee-product'
ModuleNotFoundError: No module named 'odoo10-addon-hr-employee-seniority'
ModuleNotFoundError: No module named 'odoo10-addon-hr-employee-seniority' ...: ModuleNotFoundError: No module named 'odoo10-addon-hr-employee-seniority' How to remove the ModuleNotFoundError: No module named 'odoo10-addon-hr-employee-seniority
ModuleNotFoundError: No module named 'odoo10-addon-partner-employee-quantity'
ModuleNotFoundError: No module named 'odoo10-addon-partner-employee-quantity...: ModuleNotFoundError: No module named 'odoo10-addon-partner-employee-quantity' How...-employee-quantity' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'odoo11-addon-hr-employee-firstname'
ModuleNotFoundError: No module named 'odoo11-addon-hr-employee-firstname' ...: ModuleNotFoundError: No module named 'odoo11-addon-hr-employee-firstname' How to remove the ModuleNotFoundError: No module named 'odoo11-addon-hr-employee-firstname
ModuleNotFoundError: No module named 'odoo11-addon-hr-employee-id'
ModuleNotFoundError: No module named 'odoo11-addon-hr-employee-id'  ...: No module named 'odoo11-addon-hr-employee-id' How to remove the ModuleNotFoundError: No module named 'odoo11-addon-hr-employee-id' error? Thanks
ModuleNotFoundError: No module named 'odoo11-addon-hr-employee-age'
ModuleNotFoundError: No module named 'odoo11-addon-hr-employee-age'  ...: No module named 'odoo11-addon-hr-employee-age' How to remove the ModuleNotFoundError: No module named 'odoo11-addon-hr-employee-age' error
ModuleNotFoundError: No module named 'odoo11-addon-hr-employee-firstname'
ModuleNotFoundError: No module named 'odoo11-addon-hr-employee-firstname' ...: ModuleNotFoundError: No module named 'odoo11-addon-hr-employee-firstname' How to remove the ModuleNotFoundError: No module named 'odoo11-addon-hr-employee-firstname
ModuleNotFoundError: No module named 'odoo11-addon-hr-employee-id'
ModuleNotFoundError: No module named 'odoo11-addon-hr-employee-id'  ...: No module named 'odoo11-addon-hr-employee-id' How to remove the ModuleNotFoundError: No module named 'odoo11-addon-hr-employee-id' error? Thanks
ModuleNotFoundError: No module named 'odoo11-addon-hr-employee-seniority'
ModuleNotFoundError: No module named 'odoo11-addon-hr-employee-seniority' ...: ModuleNotFoundError: No module named 'odoo11-addon-hr-employee-seniority' How to remove the ModuleNotFoundError: No module named 'odoo11-addon-hr-employee-seniority
ModuleNotFoundError: No module named 'odoo11-addon-partner-employee-quantity'
ModuleNotFoundError: No module named 'odoo11-addon-partner-employee-quantity...: ModuleNotFoundError: No module named 'odoo11-addon-partner-employee-quantity' How...-employee-quantity' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'odoo11-addon-stock-request-employee'
ModuleNotFoundError: No module named 'odoo11-addon-stock-request-employee' ...: ModuleNotFoundError: No module named 'odoo11-addon-stock-request-employee' How to remove...-employee' error? Thanks   Hi, In your python environment you have
ModuleNotFoundError: No module named 'odoo11-addon-stock-request-employee'
ModuleNotFoundError: No module named 'odoo11-addon-stock-request-employee' ...: ModuleNotFoundError: No module named 'odoo11-addon-stock-request-employee' How to remove...-employee' error? Thanks   Hi, In your python environment you have

Ads