I am developing a medical application for cell phones via the internet for my final year graduation project and I have created every list,function and other things I need.However I am really not able to solve the connection problems since a month .
Can anyone tell me whats my mistake or how to solve my mistake.
I get the error as STACKTRACE:javax.microedition.io.ConnectionNotFoundException: TCP open
And I am really getting mad now as its been a month of time day in and day out that i made this code but m not able to solve such silly things .
Can anyone please help me by literally teaching me step by step as how and what changes to make, my mind has stopped working over the code now .
Hi thanks mate for the quick reply.
1)I am using Sun micros WTK 2.5.2
2)My localhost doesnt seem to work.
3)I just have windows firewall and I have disabled it and I have no other firewall nor any sort of softwares installed.
Well, how do you mean to connect to server if it doesnt' work
must be a valid address that works. If you have some local application on 8080 port with loginServlet mapping, than make it work.
Error you are receiving is probably produces by unreachable server. Application tries to connect but it doesn't have valid working address.
You could try using .netbeans with integrated wtk (or better newest version with integrated Java ME SDK 3.0.)
Than you can use debugger (and try/catch blocks or some logger) to find exact spot where error occurred.
To connect over lan you also need to have working server on one machine
and from application point to that machine with it's IP address. Port would be needed too.
(you need to have static ip addresses on both machines)
I haven't look at the code much (and don't need to), but first thing you should do is to think it out. What do you need to create app for?
Currently you have crated app for non existing website so it actually don't do anything.
I can suggest that you find some working service over the net, or create your own, and than make appropriate application for it.
Since it's client-server relationship, you first need to find/create server and than client. Now you have client without server.
Maybe you could also create some test app that will support your current app but that depends on your skill
You should decide what will need less work. Crate server or to re-factor app.
Ok I will start making servlets now.
But one noob question
What tools should I use the best to make servlets.I know nothing abt servlets as well so ofcourse I would choose the easiest tool
I saw a few of XML too, that would be great as I am well versed with XML.
Wat are the various options for me to create servlets ex netbeans etc