Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlet Error

 
R Sugan
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The class file is corrupted or not correctly updated. Recompile and redeploy the stuff.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65227
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Or did you compile it at all?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic