This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets 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: 60752
    
  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
The requested resource is not available
Getting a memory leak on ScheduledExecutorService
Compiling result.jsp (page 89 HFSJ)
How to add actionListener to ScheduledExecutorService?
Scheduling task execution in defined intervalls