Beginner J2ME thread question.

P

Poldie

I'm just starting out with Java, on the J2ME platform.

I've been reading about threads, such as this page:

http://developers.sun.com/techtopics/mobility/midp/articles/threading2/

where it says:

"The Java runtime associates each live thread with an instance of
java.lang.Thread."

But on my API docs, which I downloaded (can't find them online) the
Thread class isn't a HTML link, suggesting it's not part of J2ME. Ditto
for the Runnable interface. But all the example source code I've seen
has it (runnable, I think) supporting "start", "stop" and "run".

Am i missing something?
 
P

Paul Hamaker

......./docs/api/midp/java/lang/Thread.html
......./docs/api/midp/java/lang/Runnable.html
 
P

Poldie

Paul said:
....../docs/api/midp/java/lang/Thread.html
....../docs/api/midp/java/lang/Runnable.html

Thanks. I don't have such midp docs. I've installed the JDK which has
those two files under:

C:\Program Files\Java\jdk-1_5_0-doc\docs\api\java\lang

but that's the Java 1.5 stuff I installed because I need it for
NetBeans.

I was talking about the docs I got from midp-2_0-fr-spec.zip.

Using part of the path in your reply I can see this site:

http://www.it.uc3m.es/celeste/docencia/j2me/docs/api/midp/index.html

But is that midp1? I'm interested in midp2.0 stuff, because of the
device I'm going to target. Then again, all the stuff I've been
reading tells me that start,stop, run, runnable and thread are all
available to midp2, and I can see them in that site.

So I'm a bit confused still. Where am I supposed to download the
correct docs from?
 
P

Poldie

Paul said:
If I remember correctly, the documentation I got was part of the
Wireless Toolkit . Anyway, these links should help you along :
http://java.sun.com/j2me/docs/zip/cldc11api.zip
http://java.sun.com/j2me/docs/

Thanks again for your help. I now have MIDP2.0 and CLDC1.1 docs
installed on my system, each with a subset of the required information
- no Thread/Runnable info in the MIDP docs, and no
javax.microedition.lcdui.game info in the CLDC1.1 docs. Perhaps this
is how configurations and profiles and their respective documentation
is supposed to be arranged, though. It'll probably make sense as I
become more familiar with it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,269
Messages
2,571,100
Members
48,773
Latest member
Kaybee

Latest Threads

Top