Sending SMS using MIdlet

Posted on 2007-04-03
Medium Priority
Last Modified: 2013-12-29
I have tried sending SMS message using Midlet by following this link:


I didn't understand what the author means by the following:

emulator -classpath MyApp.jar \
  -Xdescriptor:MyApp.jad \
  -Dcom.sun.midp.io.enable_extra_protocols=true \
          com.sun.midp.io.j2me.sms.DatagramImpl \
  -Dcom.sun.midp.io.j2me.sms.DatagramHost=localhost \
  -Dcom.sun.midp.io.j2me.sms.DatagramPortIn=54321 \
  -Dcom.sun.midp.io.j2me.sms.DatagramPortOut=12345 \
  -Dcom.sun.midp.io.j2me.sms.permission.receive=true \
  -Dcom.sun.midp.io.j2me.sms.permission.send=true \
  -Dcom.sun.midp.io.j2me.cbs.permission.receive=true \
  -Djavax.microedition.io.Connector.sms=true \
  -Djavax.microedition.io.Connector.cbs=true \
  -Dcom.sun.midp.io.j2me.sms.CBSPort=24680 \

should i add this to the classpath?

plz I need ur help =)
Question by:Sh_Rashed

Accepted Solution

bhpr earned 500 total points
ID: 18950844
no u donot have to add these to classpath...
just add them to the menifest file that is inside jar or  can add to jad file also.

LVL 12

Assisted Solution

keyurkarnik earned 500 total points
ID: 19362107
Just add the following properties to the JAD :

MIDlet-Permissions: javax.wireless.messaging.sms.send,javax.wireless.messaging.sms.receive

Then refer the detailed explanation and the code given by me at :


Also, if you arent, use the EclipseME plugin !!
LVL 36

Expert Comment

ID: 19675497
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

I will leave the following recommendation for this question in the Cleanup topic area:
   Split: bhpr {http:#18950844} & keyurkarnik {http:#19362107}

Any objections should be posted here in the next 4 days. After that time, the question will be closed.

EE Cleanup Volunteer

Featured Post

WEBINAR: GDPR Implemented - Tips & Lessons Learned

Join the WatchGuard team on Thursday, March 29th as we recount some valuable lessons learned in weighing the needs of a business against the new regulatory environment, look ahead at the two months left before implementation, and help you understand the steps you can take today!

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.

Join & Write a Comment

Working settings for French ISP Orange "Prêt à Surfer" SIM cards for data connections only. Can't be found anywhere else !
For Sennheiser, comfort, quality and security are high priority areas. This paper addresses the security of Bluetooth technology and the supplementary security that Sennheiser’s Contact Center and Office (CC&O) headsets provide.  
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This Micro Tutorial will show you how to maximize your wireless card to its maximum capability. This will be demonstrated using Intel(R) Centrino(R) Wireless-N 2230 wireless card on Windows 8 operating system.
Suggested Courses

587 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question