J2ME - Code Once and Everywhere?

Can I encode once in J2ME and run it on any mobile phone, how can I use .Net compact framework?

+3
source share
6 answers

The J2ME code you write requires a specific environment on the phone in terms of the runtime environment and the classes available to it. Depending on what you use in your application, you may be able to run it on some phones and it will not work with another. E.g. let's say a J2ME application using MIDP 2.0 and CDLC 1.1. Now your application will only work on phones that support these profiles.

Usually you use the target segment of mobile phones when writing applications for mobile phones. You do not expect the use of an accelerometer to work on phones that do not have an accelerator! (I don't think J2ME has any support for accelerators, though;))

+3
source

You will encounter differences in how each vendor implements its JVM. Because each phone’s hardware is different, they all work a little differently. Most things will work, but there may be some differences.

+5
source

, :

  • , . , , ( ).

  • -, , . HTTP.

  • , , . RMS .

  • .

...

+5

, java-.

j2me-, " , "

" , "

" , "

+2

, , , JVM , API.

, : . , (MSA - JSR 248), , API. , API .

, MIDP 2.1, . 2.1 verison 2.0, " ": , . , Java, .

, , , , JSR 248. , , , JVM .

+2

Neither J2ME nor the .NET Compact Framework are ubiquitous (although J2ME is supported on an impressive number of phones). You can only work on their supporting phones. Thus, in any case, you can write once and run wherever the platform / infrastructure is supported.

+1
source

Source: https://habr.com/ru/post/1708449/


All Articles