aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlet Error" Watch "Servlet Error" New topic
Author

Servlet Error

R Sugan
Ranch Hand

Joined: Mar 13, 2009
Posts: 48
Hi,


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
Marshal

Joined: Jan 10, 2002
Posts: 60050
    
  65

Or did you compile it at all?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Servlet Error
 
Similar Threads
Scheduling task execution in defined intervalls
Getting a memory leak on ScheduledExecutorService
Compiling result.jsp (page 89 HFSJ)
How to add actionListener to ScheduledExecutorService?
The requested resource is not available