I'm trying to have a Java Timer in my EntryPoint:
Timer timer = new Timer();
timer.schedule(
new TimerTask() {
public void run() {
//some code
}
}
, 5000);
But when trying to compile this I got:
No source code is available for type java.util.Timer
; did you forget
to inherit a required module?
What can I do to fix this error?