Reputation: 11
I'm learning to program in Java and would like to develop a mobile Chess game for the Blackberry platform.
It was recommended to me that, as a beginner, I should build the game for regular desktop use and avoid the more complex mobile development for now. I was told that I can port the game to Java ME once development in SE is complete.
My question is: is this really possible? What kinds of limitations exist between SE and ME that I should keep in mind while developing in SE?
I'd hate to have to go back and undo most of my work in order to get the game to work on my Blackberry.
Upvotes: 1
Views: 946
Reputation: 78135
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).
Upvotes: 7
Reputation: 5523
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.
Upvotes: 2
Reputation: 2936
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!
Upvotes: -1