Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

run j2me app on android?

is it possible to run java SE or Java ME app on android ???

like image 456
mahdi Avatar asked Jan 22 '23 20:01

mahdi


2 Answers

If you search for "J2ME runner android" on Google, you'll find some hits for projects which claim to allow you to run J2ME projects on Android.

e.g. http://www.netmite.com/android/

I'm not sure what you mean by Java SE in this case. Technically Dalvik is a lot closer to J2SE than to J2ME. A large set of the APIs are there, and code will likely cross-compile without issue. You can even include a lot of J2SE JARs in your project and use the build tools to re-compile them from bytecode to DEX.

http://en.wikipedia.org/wiki/Dalvik_(software)

The infrastructure is vastly different, however, and you're not going to get an application written/compiled for a desktop running a standard JVM to work on Android without changes and recompiling.

like image 132
mbafford Avatar answered Feb 04 '23 13:02

mbafford


No, there is no Java ME support. You need to change the user interface to operate on Android.

However, Java SE's base libraries are mostly supported, with exceptions (such as no Swing). You will still need to give you application a View and an Intent otherwise the system won't be able to launch it (there is no built-in "console mode").

like image 22
Yann Ramin Avatar answered Feb 04 '23 13:02

Yann Ramin