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?

Regards
smotbdAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

__geof__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.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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!:
http://www.netbeans.org/kb/docs/javame/quickstart.html


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;
        if(-1==portNames.indexOf("COM",0))
        {
        	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*/
		try
		{
		connection1= (CommConnection) Connector.open(parameter, Connector.READ_WRITE, true);
		//connection1 = (CommConnection) Connector.open("comm:1;baudrate=115200;parity=none;stopbits=1");
		//If a successful connection is established than true will be printed on the command line
		boolean1=true;
		System.out.println(boolean1);		
		}
		catch(IOException e)
		//catch (Exception e)
		{
		System.out.println("unable to establish connection with serial port");
		e.printStackTrace();
		}
}

Open in new window

0
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?
0
JavaScript Best Practices

Save hours in development time and avoid common mistakes by learning the best practices to use for JavaScript.

smotbdAuthor Commented:
Thanks for the links geof...............but this is exactly it - I have been to that first url several times: http://www.netbeans.org/features/javame/index.html
......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: http://www.netbeans.org/kb/docs/javame/quickstart.html
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
0
__geof__Commented:
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".
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Smartphone Programming

From novice to tech pro — start learning today.