learn java
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 The Software Craftsman this week in the Agile 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

MyScheduledExecutorService.java:7: cannot access ScheduledExecutorService
bad class file: ./ScheduledExecutorService.java
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: 62298

Or did you compile it at all?

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Have you tried LearnNowOnline? http://www.learnnowonline.com/
subject: Servlet Error