This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Servlets and the fly likes Servlet Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlet Error" Watch "Servlet Error" New topic

Servlet Error

R Sugan
Ranch Hand

Joined: Mar 13, 2009
Posts: 48

i am using "ScheduledExecutorService" in servlet program but i am getting this error cannot access ScheduledExecutorService
bad class file: ./
file does not contain class ScheduledExecutorService
Please remove or make sure it appears in the correct subdirectory of the classpath.
private final ScheduledExecutorService scheduler = Executors.newScheduledThreadPool(1);

What should i do

Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
The class file is corrupted or not correctly updated. Recompile and redeploy the stuff.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63540

Or did you compile it at all?

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Servlet Error
It's not a secret anymore!