Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2006

Tip: Looking for answers? Try searching our database.

Beginner J2ME thread question.

Thread view: 
Poldie - 30 Mar 2006 22:31 GMT
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?
Paul Hamaker - 31 Mar 2006 07:42 GMT
....../docs/api/midp/java/lang/Thread.html
....../docs/api/midp/java/lang/Runnable.html
--------------------
Paul Hamaker, SEMM, teaching ICT since 1987
http://javalessons.com
Poldie - 31 Mar 2006 08:21 GMT
> ....../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?
Paul Hamaker - 31 Mar 2006 11:11 GMT
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/
--------------------
Paul Hamaker, SEMM, teaching ICT since 1987
http://javalessons.com
Poldie - 31 Mar 2006 11:30 GMT
> 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.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.