best java mobile application options?

I am completely new to Java and I have tried getting to grips with creating java applications for mobile devices but Im struggling. There seems to be a myriad of options, all of which with their disadvantages, compatibility issues and lack of support.

Can someone please clear up what the best option is to simply create a java application that opens up a serial connection (to connect to a Bluetooth device) and also to connect to a MySQL device?

I have the N95 device, is this device wise for developing java applications? Not sure if it allows for opening serial port. Are there any emulators for this phone?

Is there a difference between j2me and Java ME or are they the same thing!?!?!
What are my best options?

Who is Participating?
__geof__Connect With a Mentor Commented:
J2ME og Java ME is the same.

For mobile phone development I recommand NetBeans. It has a mobile phone plugin with most of graphic design and flow that can be created with Drag n' Drop. And easy deployment on mobile phones.
smotbdAuthor Commented:
Ok I have tried Java ME development on Eclipse/EclipseME, with jdk1.6.0_13 and Java Platform Micro Edition SDK 3.0. I used the DefaultCLDCPhone1as the device emulator but for some reason I could only identify Port1 as the available ports. I know there are more and I need to open port 12 to connect to my Bluetooth device. This port is proven available as I can connect to the Bluetooth device on HyperTerminal port12. Simply open the port and I'm connected. So is it just a case of mapping port 1 to port 12 somehow???

For those are intrigued with the issue- my simple code snippet is attached below.

Anyway: Thanks Geof for your comment - I will now try Netbeans and start off with the following instructions and let you know if I have any joy this time round!:

Please let me know if the above issue has a simple solution. I certainly could not find one but I have only known Java now for a little over 2 days!!

public HelloWorld() {
		// TODO Auto-generated constructor stub
        display = Display.getDisplay(this);
        exitCommand = new Command("Exit", Command.EXIT, 0);
        String parameter = "comm:COM12;baudrate=115200;parity=none;stopbits=1";
        String portNames =System.getProperty("microedition.commports");
        String ports;
        	System.out.println("no ports!,unconnected");
        int comma = portNames.indexOf(',');
        if (comma > 0) {
            // Parse the first port from the available ports list.
        	System.out.println("Port names: " + portNames);
            ports = portNames.substring(0, comma);
        } else {
            // Only one serial port available.
        	System.out.println("one serial port: " + portNames);
            ports =portNames;
		/*Establishing connection with Serial port*/
		connection1= (CommConnection), Connector.READ_WRITE, true);
		//connection1 = (CommConnection)"comm:1;baudrate=115200;parity=none;stopbits=1");
		//If a successful connection is established than true will be printed on the command line
		catch(IOException e)
		//catch (Exception e)
		System.out.println("unable to establish connection with serial port");

Open in new window

smotbdAuthor Commented:
Surprise surprise the problems continue with Java!

Is it just me or is mobile development with Java really mind boggling!?!? All I want to do is a simple MIDP/CLDC application and I cant even start programming because installing compatible development environment is ridiculous!

I have installed NetBeansIDE 6.5.1 but I cannot find the Netbeans Mobility Pack compatible with this version. Where is the download for this?
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

smotbdAuthor Commented:
Thanks for the links geof...............but this is exactly it - I have been to that first url several times:
......but there is no download link here for the mobility pack. Or is it built in with the IDE download?
When I follow the tutorial found at:
I have to do the following to begin a new project: Choose File > New Project (Ctrl+Shift+N). Under Categories, select Mobility. Under Projects, select MIDP Application and click Next.......
BUT there is no mobility pack in IDE6.5....and I can't find the download for the Mobility pack!! Is there one?

thanks again geof
When You download NetBeans IDE, you have different "bundles". You need to choose, Java or All to get the JavaME availability. If you chose another one, you can go to tools > plugins and add all plugins under the category called "mobility".
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.