Urzywam NetBeans IDE 5.5 funkcja której staram sie uŻyć pojawia sie dopiero w MIDP 2.0 (takteż ustawiłem projekt)
Oto problem:
//zeby nie było ze zapomniałem
import javax.microedition.io.PushRegistry.*;
//fragment kodu wywołujący błąd przy kompilacji
Date nexttime = new java.util.Date() + 60000;
PushRegistry.registerAlarm(
"MojMidlet",
nexttime);
A oto błąd:
Compiling 1 source file to C:\JAVA\mobile\MojMidlet\build\compiled
C:\JAVA\mobile\MojMidlet\src\Midlet.java:33: unreported exception java.lang.ClassNotFoundException; must be caught or declared to be thrown
<b>PushRegistry.registerAlarm(</b>