Can I encode once in J2ME and run it on any mobile phone, how can I use .Net compact framework?
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;))
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.
, :
, . , , ( ).
-, , . HTTP.
, , . RMS .
.
...
, java-.
j2me-, " , "
" , "
, , , JVM , API.
, : . , (MSA - JSR 248), , API. , API .
, MIDP 2.1, . 2.1 verison 2.0, " ": , . , Java, .
, , , , JSR 248. , , , JVM .
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.
Source: https://habr.com/ru/post/1708449/More articles:Where do you place POSIX semaphores when using POSIX shared memory? - shared-memoryZend_Db Question ... incrementor update - phpGetting a Broadcast Message in C # - c #Upgrading to a precompiled site - asp.netRuby on Rails, ActiveScaffold and relatives in the database - ruby | fooobar.comHow struts 2 include javascript files in jsp from their struts.jar? - javascriptHow to register the same type twice with different constructors in Unity? - c #Ajax (or JSONP) when unloading using Safari / Chrome - javascriptCocoa: Why does my table look empty? - iosSort a DataGridView with zeros in a DateTime column - .netAll Articles