Java application on mobile phone :-)

mathieu7530 -  
 toto -
Hello,
I would like to know if it is possible to put the applications I create in Java language using Eclipse on my mobile? And could you tell me how that is possible?
LG KS20 (Windows Mobile and a "mobile java" directory)
Thank you
Configuration: Windows 7 / Safari 532.5

2 réponses

toto
 
<translation>Just a basic question, but you do use j2me, right? :)</translation>
13
mathieu7530
 
<translation>
Well, I have the Java documentation and the Java runtime as I use at school for programming... Do I need to download it and what will it be useful for?
</translation>
0
toto
 
So a little explanation.

The applications that run on a mobile (Blackberry, Nokia, etc.) run on a specific version of the JVM (Java Virtual Machine) dedicated to mobile devices (hence the name J2ME for Java Micro Edition) as opposed to what we can call "classic" Java J2SE.

J2ME is specifically designed for phones, and is much more "compact".

Thus, you will deduce that your application compiled in J2SE will not run on your mobile.

The solution available to you is to compile your application in J2ME, but since J2ME has many fewer classes, I would be surprised if it compiles without errors. You will therefore need to make modifications to your code so that your application compiles in J2ME.
0
mathieu7530 > toto
 
Ok, thank you very much. Where can I download J2Me and is it usable with Eclipse or BlueJ? How can I choose which Java to use when launching the programming program?
0
toto > mathieu7530
 
You will find j2me on the sun website, just like you did for j2se.

Then in eclipse, you can configure which jre you will use to compile your project. (Windows -> Preference -> Java)
0