Porting Java SE Game to Java ME

霸气de小男生 提交于 2019-11-29 12:52:18
martin clayton

I'm not sure the advice is especially good.

The UI classes are different, so that part would have to be redone. The UI would be a significant part of the work, so why do it twice? Why learn the SE UI APIs if you really want to do J2ME?

There was an SO question just yesterday on the differences between J2SE and J2ME - that contains useful links for you.

If your aim is to very specifically target BlackBerry then why not set up your development environment to deploy a 'Hello World' app to a BlackBerry simulator as your first step? You might want to investigate RIMs own APIs as well as 'portable' J2ME classes as they will give you better integration with the device hardware (clickwheel and so on).

Java ME and Java SE both have same syntax. They both are Java, but they are not same. Actually they are far far away from being same.

Porting a Java SE (desktop) application to Java ME is as hard as porting a C# application to Java ME.

It is not just about GUI (GUI is totally different) many functions, methods Java SE has does not exists in Java ME.

Java ME does not even use JVM, it uses KVM.

Write a simple hello world program in Java SE and then write the same for Java ME and you will see the difference.

It is practically the same but you have to consider that a mobile doesn´t have same resources as a computer (memory, cpu, etc.) so you have to control more over this aspect.

You always will be able to download the Java ME platform and simulate your applications.

This is the website: Java ME

Good luck!

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!