Link to home
Start Free TrialLog in
Avatar of iry
iry

asked on

application question

when i run this application with java(i have compilled it with javac sucessfully) of JDK 1.2.2, it shows" Exception in Thread "main"java.lang.NoClassDeFoundError:TApplication"
The class is as following import java.awt.*;
import java.awt.event.*;

public class TApplication{
  public static void main(String args[])
  {
/*    TMenu tMenu = new TMenu();
 
    tMenu.addWindowListener(
      new WindowAdapter(){
        public void windowClosing(WindowEvent e)
        {
         System.exit(0);
        }
     }
   ); */
   System.out.print("welcome to");
   System.out.println("java programming");
  }
}
 
Thanks!
Avatar of _lychee_
_lychee_

does your classpath contain .?
ASKER CERTIFIED SOLUTION
Avatar of Ravindra76
Ravindra76

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of iry

ASKER

Edited text of question.
Avatar of iry

ASKER

Yes, I forgot to change the classpath in SHELL.
After i added classpath = .:.(BShell). Everything is OK.
Thanks a lot!