J2ME "instead of" J2SE?

At our company we are thinking about a system that involves slimmed down PCs mounted in trucks. (There will also be an fleet management center at the companies head office.)
Approx PC spec; 200 - 300 MHz CPU, no harddisk but flash RAM maybe 512 MB, 10 inch TFT color screen. Keyboard and probably a CD/DVD reader. OS; Win CE, WinXP Embedded or Linux.
A map/navigation application would run on these. Another application will handle forms (an AWT-GUI will probably do).
We hope to find a commercial map app to install.
I would like to develop the other app in Java but the PC bulider didn't like the idea of runnig J2SE on that limited platform.
How about developing in J2ME? Pros and cons?
Can I just download J2ME from Sun, develop and run as I'm used to with J2SE? If we are running the JRE on Windows. Do we have to implement or port J2ME ourselfs.
I have developed in J2SE (Swing, Java 2D) and a little in J2EE (JDBC, EJB, Applets).

The original question is very interesting: should a mobile app move from J2SE to J2ME?
The answer is not simple at this time because the specs are evolving fast.
GUI features and h/w and OS portability is definitively a current factor but may not be important for many applications. A corporate application can usually select a set of hardware, OS and Java runtimes to support so all you have to do is make sure that your platform satisfies your business requirements and not the business requirements of the rest of the world.
Mobile GUI in J2ME is being improved by some new specs in progress and to be implemented probably in runtimes shipped in 2005.
TCP/IP features are now fully supported by MIDP2 (the socket and server socket are optional in the spec bu the all MIDP2 runtimes being shipped today support them).
Floating-point arithmetic is now supported by the underlying spec., CLDC 1.1; it was not supported by CLDC 1.0.
New specs have been proposed recently and are being supported by new J2ME runtimes: for example Wireless Messaging API (JSR-120, WMA) and Mobile Media API (JSR-135, MMA).
The set of mobile Java specs including MIDP are being regrouped by the JTWI spec: Java Technology for Wireless Industry (JSR-185).
The way to go in today's fast changing mobile technologies is CLDC and the specs supported by it:
-      Connected Limited Device Configuration (CLDC)
-      Mobile Information Device Profile (MIDP)
-      Java Device Test Suite
-      Information Module Profile (JSR-195)
-      Java Technology for Wireless Industry (JSR-185) <<<<<<<<<<<<<<<<<<<<<<<<
-      Wireless Messaging API (JSR-120)
-      Mobile Media API (JSR-135)
-      Location API for J2ME (JSR-179)
-      SIP API for J2ME (JSR-180)
-      Security and Trust Services API for J2ME (JSR-177)
-      Mobile 3D Graphics (JSR-184)
-      J2ME Web Services (JSR-172)
-      Bluetooth API (JSR-82, Motorola, Java Partner Site)
It looks like very soon if not already now, J2ME will have more features than J2SE for most interconnected mobile applications. For example, today, a MIDP2 device can install a new J2ME application over-the-air (OTA), something that cannot be done easily by J2SE, I believe. All the user has to do to install OTA is to browse to the web page with her mobile device that contains an html anchor () to the jad file referencing the application (a MIDlet) and the rest is automatic and the programmer has nothing to write to get this feature.
serge

Similar Messages

  • Connecting J2ME serversocket with J2SE socketconnection

    ***********connecting J2ME serversocket with J2SE socketconnection *****************
    I am currently working on J2ME . Here I have a situation that I need to contact the push registry's socket connection of a midlet from the web server . I apparently wrote a J2SE client socket program to connect the midlet's socket inorder to fire the push registry. But I got a connection failure exception.
    I want to know whether i could connect J2ME serversocket with J2SE client socket . The J2SE client socket application is residing at the webserver.If yes, how?
    if any extra information needed regarding this , contact me at [email protected]
    regards
    amar

    Yes, we have already done that...using J2ME socket demo server and J2SE as the client. We have also tested it in vice-versa with J2ME socket demo as the client and J2SE as the server and they both worked pretty well. Note : both J2ME 2.0 and 2.1 also J2SE 1.4.2_04. We used the KToolBar and the SUN ONE Studio ME as our IDEs
    You can contact me at : [email protected]

  • Communication between J2ME MIDlet and J2SE server

    In my project I need to be able to exchange SMS messages between a J2ME MIDlet and a J2SE server? Is that possible? I tried the following:
    I included the CLDC, MIDP and WMA libraries in the classpath of my J2SE server and tried to use the wireless messaging API in the J2SE server. I get the following error message while trying to establish a MessageConnection:
    Exception in thread "main" java.lang.UnsatisfiedLinkError: com.sun.midp.Configuration.getProperty0(Ljava/lang/String;)Ljava/lang/String;
         at com.sun.midp.Configuration.getProperty0(Native Method)
         at com.sun.midp.Configuration.getProperty(Configuration.java:34)
         at com.sun.midp.io.InternalConnector.<clinit>(InternalConnector.java:91)
         at javax.microedition.io.Connector.open(Connector.java:158)
         at javax.microedition.io.Connector.open(Connector.java:138)
         at javax.microedition.io.Connector.open(Connector.java:120)
    Can anybody provide any suggestions?

    The communication should be done through these ports: https://social.technet.microsoft.com/Forums/windowsserver/en-US/6de9c3f0-2841-4a74-80bb-46a02779124b/which-tcp-ports-does-a-workstation-use-to-authenticate-to-ad-and-get-group-policy?forum=winserverNIS
    To have better visibility, you can setup a network sniffer like Wireshark and observe the traffic.
    As the ADFS and DCs will be located in the same LAN then it should be okay as no filtering should be done (Unless if this is done on local firewalls of the servers).
    This posting is provided AS IS with no warranties or guarantees , and confers no rights.
    Ahmed MALEK
    My Website Link
    My Linkedin Profile
    My MVP Profile

  • Use J2ME APIs in J2SE, or vice versa?

    Is it possible to use J2SE APIs in a J2ME MIDlet, or vice versa? Or workarounds?
    The reason why I am even doing this is that I have a study project to make work a communication gateway between 2 systems. And 1 of them provides APIs in J2SE and 1 in J2ME.
    I tried serveral ways.
    1. In a J2ME MIDP 1.0 MIDlet, when calling the APIs provided in J2SE, I get :
    ALERT : Bad method signature
    2. In a J2ME MIDP 2.0 MIDlet, when calling the APIs provided in J2SE, I get :
    a. Before obfuscating:
    java.lang.NoclassDefFoundError:java/net/UnknownHostException:Cannot create class in system package
    at Canvas.<init>(+18)
    at MIDlet.startApp(+15)
    b. After obfuscating:
    Error verifying method MIDlet startApp()V
    Method...
    3. In a J2SE program, when calling J2ME APIs like
    javax.microedition.io.Connector.open(url);
    I get the
    java.lang.UnsatisfiedLinkError
    (see below for more details)
    Any help would be appreciated...
    Wen
    3. Details of java.lang.UnsatisfiedLinkError
    Exception in thread "main"
    java.lang.UnsatisfiedLinkError: getProperty0
    at
    com.sun.midp.Configuration.getProperty0(Native
    Method)
    at
    com.sun.midp.Configuration.getProperty(C:/tmp_java/build_WTK/j2me_mid
    p/src/share/classes/com/sun/midp/Configuration.java:34)
    at
    com.sun.midp.io.InternalConnector.<clinit>(C:/tmp_java/build_WTK/j2me
    _wtk/midp/src/lime/classes/com/sun/midp/io/InternalConnector.java:91)
    at
    javax.microedition.io.Connector.open(C:/tmp_java/build_WTK/j2me_midp/
    src/share/classes/javax/microedition/io/Connector.java:158)
    at
    javax.microedition.io.Connector.open(C:/tmp_java/build_WTK/j2me_midp/
    src/share/classes/javax/microedition/io/Connector.java:138)
    at
    javax.microedition.io.Connector.open(C:/tmp_java/build_WTK/j2me_midp/
    src/share/classes/javax/microedition/io/Connector.java:120)
    at
    terraplay.networking.SendReceiveHTTPDefault.openUrl(SendReceiveHTTPDe
    fault.java:40)
    at
    terraplay.networking.AsyncCommunicationHandler.setup(AsyncCommunicati
    onHandler.java:44)
    at Tgateway12.main(Tgateway12.java:45)

    "J2ME" is strictly speaking not defining any API. It is divided in configurations and profiles like CLDC and MIDP and so called "optional packages" like the WebService-API. All of those might have some classes in common with J2SE but definitely not all. So there might be some overlapping but it's not necessary and I wouldn't know of any configuration or profile being a true subset of j2me. CLDC / MIDP for example define a package javax.microedition that is not part of J2SE

  • Any other store in mobile using j2me instead rms

    is their any other possibility to store instead of rms while usinf j2me

    FileConnection
    Not all devices support it though.

  • Running J2ME code in a J2SE VM

    Is it possible to use J2ME classes in J2SE? Could I include some jar with, for example, javax.microedition.lcdui.Image, and use that class in a J2SE program? If so, which jar?
    thanks,
    Abraham

    have a look at http://sf.net , they have an emulator for this task...

  • Extend a j2se class in j2me class

    I am using eclipseme to build my project, and i have imported the j2se library jar file
    however, when i try to extend a a j2se class in j2me class
    For example,
    public class < j2me class >extends <j2se class>{
    There is a error message occur, it is:
    Error preverifying class < j2me class >
    what is the problem on it?
    Thanks

    stickbaby wrote:
    I am using eclipseme to build my project, and i have imported the j2se library jar file
    however, when i try to extend a a j2se class in j2me class
    For example,
    public class < j2me class >extends <j2se class>{
    There is a error message occur, it is:
    Error preverifying class < j2me class >
    what is the problem on it?
    what class?
    Thanks

  • J2ME String's substring method

    Is there a problem with the Substring method? I have a simple piece of code that runs fine outside of the J2ME emulator using J2SE but completely fails to work properly once inside the emulator.
    The code is like this:
    public String nextToken() {
    int nextDelimiter = delimitedString.indexOf(stringDelimiter,lastDelimiter);
    if ( nextDelimiter == -1 ) {
    nextDelimiter = delimitedString.length();
    hasMore=false;
    String token = delimitedString.substring(lastDelimiter, nextDelimiter);
    lastDelimiter=++nextDelimiter;
    return token;
    } // public String nextToken()
    It seems that the substring method isn't able to cope with any values for beginIndex other than zero. When I run this code I always get the first X characters from the head of the string. Has anyone else encountered this? Is there a solution?
    Thanks,
    jk

    Well- looks like this forum is kind of dead. I ended up going with a workaround that used char arrays. Instead of indexing into the string using substring, i pull a character array out of the string and index into it. I found that the values returned by the string's indexof method still work, regardless of the initial search index.

  • J2SE Adapter Engine / JMS Adapter

    We need to connect to MQ Series 5.3 (Websphere MQ) from the XI (3.0 SP16) box.
    1)Is J2SE adapter engine needs to be enabled/configured in order to use JMS Adapter? Cant we use J2EE JMSAdapter instead of J2SE JMS Adapter?
    2) Where can I download the JMS Adapter libraries, for installation?
    Ours is unix-based installation.
    I have gone thru the thread
    Installation and then Configuration of Plain J2se Adapter Engine
    and the SAP Note: 747601 that talks about J2EE JMSAdapter MQSeries libraries.
    TIA,
    Steve

    Hi Steve,
    Check these ~
    http://help.sap.com/saphelp_nw04/helpdata/en/6f/246b3de666930fe10000000a114084/frameset.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/03fd85cc-0201-0010-8ca4-a32a119a582d
    J2Se adapter
    Installation and then Configuration of Plain J2se Adapter Engine
    Hope this helps,
    Regards,
    Moorthy

  • J2ME on PDA?

    Hi,
    I have to make an application for a PDA. I already made something in VB.NET (in the Compact Framework). I also have to make the same application using J2ME.
    Is this possible, or is J2ME mainly meant for Cell phones?

    Use Personal Profile/CDC of J2ME instead of MIDP/CLDC. Sun has devided the wireless devices as 2 groups called MIDP/CLDC(mainly for mobile phones), Personal Profile/CDC for PDA and stuffs.
    in PP/CDC you have lots of classes and functionality that can not be provided for a mobile phone .
    I would recomend youto read this article before you start coding.
    http://developers.sun.com/techtopics/mobility/personal/articles/pbp_pp/

  • J2me  RMI HELP

    hy to all,
    I'm new with j2me.
    I must develop an java rmi client for hp6915.
    what jvm version I must download??
    I downloaded Mysaifu jvm. It is rmi rmi enabled???

    There is no direct RMI support in J2ME like in J2SE. You have to use something else for your communications. The most commonly used way (and in fact the only way that is mandatory in the MIDP 2.0 spec) is via a HTTP or HTTPS connection. For more information see the MIDP 2.0 spec, in particular the section about the General Connection Framework.

  • Running j2me file

    hi,
    i m new to j2me. i ve j2se and wireless toolkit installed on my system. after writing a java file with the package javax.microedition.midlet.* i m getting errors like the above said package does nt exist.
    do i have to install nemore software in order to get my files compiled ? path is also set to C:\Program Files\Java\jdk1.5.0_05\bin;C:\WTK23\bin.
    what do i have to do more? can anybody pls guide me how to compile and run a j2me java file ?
    thanks and regards

    Hi Sudhi,
    there are loads of tools that can help you with writing J2ME applications. One of the best in terms of integration and features is NetBeans with Mobility Pack addon. You can find both at http://www.netbeans.info/downloads/download.php?type=5.0b
    Peter

  • J2SE question

    How to send a SMS using J2SE???
    is there a way to import J2ME library to J2SE????

    send SMS??
    3 methods
    1. Try finding some SMS sending service on net
    Is there some specific mobile service provider that you want to use??
    If yes ask your service provider 2 things.
    2. How to send SMS using URL
    3. Is SMSC there. If yes try jsmpp.
    analyse above 3 things and you will get your optimal solution

  • Class vector can't be resolved

    hi ,
    plz i got the following error while running a J2ME
    program
    cannot resolve symbol
    symbol : method add (java.lang.String)
    location: class java.util.Vector
    any ideas????

    First of all, crosspost:
    http://forum.java.sun.com/thread.jspa?threadID=629578
    Please only use one thread.
    There is no method "add(someStringVariable)" in the Vector library for j2me. However, there is "addElement (Object o)".
    j2me specs and j2se specs are very different.
    J2ME leaves out alot of methods due for mobile usage.
    To get specs for cldc and midp, look here:
    http://java.sun.com/j2me/docs/index.html

  • Package does not exist error-message

    When I try to compile a java servlet with the following piece of code I get a compilation error referring to the import statement.
    I have just included the initial import statements. A large number of errors follow, as a result of this 'package does not exist error-message'.
    Has anyone encountered this or any ideas?
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.util.* ;
    import java.io.* ;
    import java.sql.* ;
    import com.ericsson.snf.mps.mppapi.mtlr.*;
    The error messages come from the 'import com.ericsson.snf.........' statement.
    I am trying to integrate ericsson software, into my application.
    Thanks,
    java-mobile-user

    That's probably because you are trying to integrate j2me suff with j2se/ee. That won't work without los of extra work..

Maybe you are looking for

  • Constantly SAFARI closing while trying to open any/all PDF files

    Seems each time I try to open a PDF file, Safari closes every time, I have updated version of Safari, and believe I have the correct updated version of Adobe Reader. Does someone have a clue for me as to why its doing that? Thanks

  • Message Mapping Problem with UTF-16LE Encoded XML

    Hello, we have the following scenario: IDoc > BPM > HTTP Sync Call > BPM > IDoc Resonse message of the HTTP call is a XML file with UTF-16LE processing instruction. This response should then be mapped to a SYSTAT IDoc. However the message mapping fai

  • 2400MP display in black and white

    Can someone help me out,  Just last week my project only displays in black and white. I have gone through evey setting I can find but don't know what the issue is.

  • Query re creating a new due date schedule

    Hi We are looking to create a new suite of 'free-choice' courses whereby students can choose their own selection of modules at the start of each of three semesters and pay for them, in total, at that time. As the fee will be based around the course,

  • Using multiple attractor objects

    Hi, I thought I had this cracked, but alas no. Ignore the graphics, I'm trying to get the physics working first. http://www.electricsauce.net/particle_filter1B.mov This shows some varying sized particles in air going through an air filtration unit. I