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?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…