This week's book giveaways are in the Scala and Android forums.
We're giving away four copies each of Machine Learning Systems: Designs that scale and Xamarin in Action: Creating native cross-platform mobile apps and have the authors on-line!
See this thread and this one for details.
Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem in servlet using Timer Class  RSS feed

 
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
 
Rancher
Posts: 42975
76
  • 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.
 
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
 
Oh the stink of it! Smell my tiny ad!
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!