You Are Here:

Community: Developer Discussion Boards

#1 Old Sample j2me codes to run - 2006-11-27, 01:41

Join Date: Nov 2006
Posts: 3
heroine
Offline
Registered User
Hi all,

In order to get familiar with the tools for j2me programming, I am currently using this book: Bluetooth Application programming with Java Apis by Kumar/Kline/T.

I have copied the codes provided in the book to run them (page 45 through 50) for client-server communication but unfortunately when I run the codes I got blank phone display. No activities going on the phone neither for client, nor on the server and midlet codes.
I am using three classes (BluetoothMIDlet.java,HelloClient.java,HelloServer.java) in my src folder. No error or warning shown so far.
Tools used:
Eclipse, EclipseMe, java wireless toolkit.

My aim is to be able to send any text from one phone(client) to another (server).....

Can you please help ? does anyone have working codes for this purpose ?

thank you for reading...!

/H
Last edited by heroine : 2006-11-27 at 01:49.
Reply With Quote

#2 Old Re: Sample j2me codes to run - 2006-11-27, 04:06

Join Date: Nov 2006
Posts: 37
Location: Buenos Aires, Argentina
Send a message via MSN to arielbt
arielbt
Offline
Registered User
To test the client-server application you need to run the bluetooth server first and then the client within the WTK. The first step in the client app should be to perform a device discovery that will find the other device.

You could verify that the application is working by printing some debugging messages that will be displayed in the console.
Reply With Quote

#3 Old Smile Re: Sample j2me codes to run - 2006-11-27, 06:34

Join Date: Apr 2006
Posts: 32
siva_guduru
Offline
Registered User
hey,
can u tell me in detail which one is server and which one is client,
if u are making same phone as clent and server then u may get the problem, try it with two different phones that i think u will be able to acheive what u want.

with regards,
siva_guduru.
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
TinyLine SVG Minute Toolkit: Optimizing SVG for J2ME girow Mobile Java Media (Graphics & Sounds) 0 2003-05-05 19:44
TinyLine SVG Minute Toolkit for J2ME: version 1.4 released girow Mobile Java General 0 2003-05-05 17:25
run j2me application as service imjdev Mobile Java General 2 2003-04-24 11:47
who run the socket sample successful? chinazou305 Symbian Networking & Messaging 1 2002-12-19 00:33
Nokia Series 60 MIDP SDK Beta 0.1 and J2ME WTK 1.04 raymondyau Mobile Java Tools & SDKs 6 2002-10-08 11:28

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia