• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem in servlet using Timer Class  RSS feed

 
Priyanka Dande
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have written servlet using java.util.Timer and java.util.TImerTask below is my code



please help me i am not able to figure out the problem i have included Timer and TimerTask still it is giving me error
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is "MyTimerTask" - has it been compiled successfully, or is otherwise available on the classpath?

Also, assuming you didn't just omit that for posting - you need to get into the habit of putting all your classes in packages. You will run into problems sooner or later if you don't.
 
Manoj sawant
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where is your MyTimerTask ? Is it compile properly and is it in same package
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!