j2me using wrong Thread? Follow
I'm trying to build one of Sun's wireless toolkit demo apps, the socket MIDlet from NetworkDemo. I get an error in socket.Sender:
stop() in socket.Sender cannot override stop() in java.lang.Thread; overridden method is final
But Irida's editor does not show the O-uparrow override indicator for Sender's stop() method, and when I jump to Sender's Thread superclass it goes to WTK2.2's cldcapi10.jar's Thread class which has no stop() method.
What am I doing wrong? This is my first j2me project. Is Irida 3401 using the wrong version of Thread when it builds?
Cheers,
11011011
Please sign in to leave a comment.
David,
how did you configure your project? Did you configure Mobile Module and
Mobile JDK (corresponding to WTK 2.2) for it? It is not obvious without help
(
Thanks.
--
Anna Kozlova
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"
"David Beutel" <no_mail@jetbrains.com> wrote in message
news:11097644.1121236404054.JavaMail.javamailuser@localhost...
MIDlet from NetworkDemo. I get an error in socket.Sender:
>
overridden method is final
>
Sender's stop() method, and when I jump to Sender's Thread superclass it
goes to WTK2.2's cldcapi10.jar's Thread class which has no stop() method.
>
using the wrong version of Thread when it builds?
>
Yes, I created the project with one mobile module and the target JDK is Sun's WTK 2.2 (using JDK 1.4.2_08). I have the same problem after restarting Irida and reloading that project, and for target JDKs of both "project" and "module-specific". The project is using no libraries (just all of WTK's which IDEA includes by default). I don't know if this is a factor, but initially I tried to use 1.5.0_04 with no WTK.
I've been able to create, compile, and run another j2me project now based on WTK's Audiodemo. I'm using Irida to run WTK's emulator. I don't think it's using Thread.
Fixed.
Thanks.
--
Anna Kozlova
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"
"David Beutel" <no_mail@jetbrains.com> wrote in message
news:24367318.1121243702055.JavaMail.javamailuser@localhost...
Sun's WTK 2.2 (using JDK 1.4.2_08). I have the same problem after
restarting Irida and reloading that project, and for target JDKs of both
"project" and "module-specific". The project is using no libraries (just
all of WTK's which IDEA includes by default). I don't know if this is a
factor, but initially I tried to use 1.5.0_04 with no WTK.
>
on WTK's Audiodemo. I'm using Irida to run WTK's emulator. I don't think
it's using Thread.