| By J2ME FAQ | Article Rating: |
|
| July 1, 2001 12:00 AM EDT | Reads: |
9,796 |
Q: Is PersonalJava part of J2ME?
A: The short answer is yes. For the long answer, we'll refer to Sun's FAQ for J2ME, which states that PersonalJava was the "first Micro Edition technology." Because PersonalJava has been around for a while now, you'll find more products with a version of it installed. But sometime this year (2001), Sun is expected to replace the existing PersonalJava technology - based on Java 1.1 - with a new release based on Java 2, and incorporate it into the J2ME concepts of configuration and profile components.
Q: Is all the Java API within J2ME?
A: No. Even PersonalJava, which has the most complete coverage of the Standard Edition API, is still just a subset.
Q: What is a "midlet"?
A: Actually, the correct word is MIDlet. A MIDlet is an application written for the Mobile Information Device Profile (MIDP). You might find these on mobile phones, PDAs - in general, small devices.
Q: Can I use threads? Is there a penalty?
A: Yes you can use threads, unless you're writing a JavaCard applet. As for the penalties, it depends on how you want to use them and the environment you're working within. When developing for constrained devices always remember what resources you have available. If you're writing a MIDlet and create 100 threads to try to load 100 images simultaneously, there definitely will be a penalty - it undoubtedly won't work.
Q: Do I use AWT or Swing for my GUI?
A: If you're developing a PersonalJava application, you have access to a modified version of AWT; "modified" meaning that a few java.awt classes/methods are optional, some have been changed, and there are some additions to the basic package.
You may be able to get Swing to work within a PersonalJava environment as well. A brief skim of the PersonalJava forums shows some success stories - and more than a few painful attempts.
None of the other J2ME "products" support AWT or Swing (for example, MIDP has the javax.microedition.lcdui package for user interfaces).
Q: Where can I find more information about wireless technologies?
A: The back issues of JDJ are one place. For online information, check out the following URLs:
Q: Where can I download J2ME emulators?
A: You can download from the following Web sites:
Q: Where can I find devices that run J2ME?
A: Move to another country. At the moment there are a limited number of countries where J2ME-capable devices have been released, especially for mobile phones. While you can probably find PDAs that support PersonalJava almost anywhere in the world, the same is not true for mobiles.
In Japan NTT DoCoMo has a number of phones from Panasonic, Fujitsu, Sony, and others (available only in Japan, of course). In the U.S., Motorola has a couple of J2ME-capable mobiles. For a more comprehensive list check out www.javamobiles.com/.
Published July 1, 2001 Reads 9,796
Copyright © 2001 SYS-CON Media, Inc. — All Rights Reserved.
Syndicated stories and blog feeds, all rights reserved by the author.
- It's the Java vs. C++ Shootout Revisited!
- Patterns for Building High Performance Applications
- Asynchronous Logging Using Spring
- Java for Programmers (2nd Edition)
- Cross-Platform Mobile Website Development – a Tool Comparison
- Three Buzzwords That Every CIO Hears but One They Should Listen To
- Write Once Run Anywhere or Cross Platform Mobile Development Tools
- Immersing into JavaScript Frameworks
- Workday Reportedly Prepping to Go Public
- Cloud Expo New York: The Java EE 7 Platform - Developing for the Cloud
- Book Review: Sams Teach Yourself Java in 24 Hours
- OpenOffice.com Lives
- Book Excerpt: Introducing HTML5
- Adobe Sends Flex to the Apache Foundation
- Five Years Waiting for JRE 7: Is It Justified? (Part 1)
- Book Excerpt: Java Application Profiling Tips and Tricks
- i-Technology in 2012: Five Industry Predictions
- It's the Java vs. C++ Shootout Revisited!
- Patterns for Building High Performance Applications
- OpenXava 4.3: Rapid Java Web Development
- The Next Web Architecture
- Asynchronous Logging Using Spring
- Java for Programmers (2nd Edition)
- Is Write Once Run Anywhere Ever Going to Be a Reality?
- A Cup of AJAX? Nay, Just Regular Java Please
- Java Developer's Journal Exclusive: 2006 "JDJ Editors' Choice" Awards
- JavaServer Faces (JSF) vs Struts
- The i-Technology Right Stuff
- Rich Internet Applications with Adobe Flex 2 and Java
- Java vs C++ "Shootout" Revisited
- Bean-Managed Persistence Using a Proxy List
- Reporting Made Easy with JasperReports and Hibernate
- Creating a Pet Store Application with JavaServer Faces, Spring, and Hibernate
- Why Do 'Cool Kids' Choose Ruby or PHP to Build Websites Instead of Java?
- What's New in Eclipse?
- i-Technology Predictions for 2007: Where's It All Headed?















