views:

150

answers:

4

Hey all,

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.

thanks.

A: 

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!

Drewen
Thanks for the link, Drewen!
FricFrac
+5  A: 

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).

HTH

martin clayton
Great advice, Martin. And, thanks for the links. BTW, I had the 'Hello World' step in mind. However, now that I think about it, given that Java *is* platform independent, wouldn't it be best NOT to use RIM's APIs and, instead, go with a pure J2ME approach so that I can run the game in other platforms? I leaned towards Blackberry because that's the phone I currently have, but who's to say I won't switch over to an Android phone or something else tomorrow?
FricFrac
I agree. You can always have 'optional' behaviour in your code or build that take advantage of hardware specific stuff like the BB clickwheel and add these later if needed and/or time permits.
martin clayton
A: 

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.

JCasso
A: 

Hi., thanks for the sharing... i recently unlocked my Nokia N 75 mobile phone using the unlock code from this site http://www.superunlockcodes.com/ and now i would like to install the java game in my mobile. is it possible to install the game and play in my mobile phone?

Jean thomas