Picture sms in java

hi can ne1 help me with jsms....in my code the PictureMessage constructor gives error.....it gives unknown class...i have imported the required packages but still i dunno what to do......
My target is to send a picture message as an sms..........

i didnt find ne...there are few which come along the
api....
my problem is...the class which i use ......ie
.PictureMessage,its constructor gives error....it
says package does not exist.....i have imported
You have to recheck again the CLASSPATH, it ok or not
correctly.....now what to do..how do i proceed
further....if neone has used these api b4 plz help me

Similar Messages

  • Problem in delivering Picture Messages through Java SMPP client

    I m working on development of SMPP Client, using Java. In it�s development I didn�t used any API from eny vendor, and implemented purely in Java. I am facing one unusual problem in receiving of Picture Messages. Also, I have one C based client application.
    I m sending picture message through both client application(s) to be delivered over different handset(s). I have tested many different cases, but could not conclude to any solution. The behavioral cases are as follows;
    When I sent same picture message through Java SMPP client on Nokia 1100, it get received with prompt �Picture Message Received�. And on viewing it, �Message cannot be displayed�, is informed and no picture message get displayed. Till now it happens for every caseto this handst, but get properly displayed on Nokia 32xx / 53xx.
    Whereas while sending through the C SMPP Client on Nokia 1100, sometime it get displayed and sometimes it doesn�t. Same prompts follows on not receiving right picture message while using Java SMPP Client
    I m not understanding why;
    It doesn�t get delivered correctly a picture message, every time I submits it to deliver on 1100 while sending through C based,
    And why It doesn�t get delivered correctly at all while sending through Java SMPP client on 1100 whereas it get delivered correctly over other Nokia model handset.
    Kindly, anyone make me solve out the prob���.

    Hi,
    Even we have implemented the Java SMPP client, to sending the picture message as embeded SMS.
    If you do not have issue to share the SMPPClient which is sending the picture message, I can look into the code and help you. Let me know, I can share my personal email id.
    Edited by: sanmetalica on Apr 14, 2008 6:01 AM

  • How to send sms through java program?

    hi,
    i am trying to send sms through java program.i am usining ubuntu 6.04.i am using modem MC35i.i use the jSMSEnjine.jar and rxtxcomm.jar.
    these are the following program.
    import org.jsmsengine.*;
    import java.util.*;
    class SendMessage
         public static void main(String[] args)
              int status;
              // Create jSMSEngine service.
         CService srv = new CService("Com2",9600);
              //CService srv = new CService("COM2",9600);
              System.out.println();
              System.out.println("SendMessage(): sample application.");
              System.out.println(" Using " + srv._name + " " + srv._version);
              System.out.println();
              try
                   //     Initialize service.     
                   srv.initialize();
                   Thread thread =Thread.currentThread();
                   thread.sleep(1000);
                   System.out.println(srv);
                   //     Set the cache directory.
                   srv.setCacheDir(".\\");
                   //     Set the phonebook.
                   //     srv.setPhoneBook("../misc/phonebook.xml");
                   //     Connect to GSM device.
                   status = srv.connect();
                   //     Did we connect ok?
                   int st=CService.ERR_OK;
                   System.out.println(st);
                   System.out.println(status);
                   if (status == CService.ERR_OK)
                        //     Set the operation mode to PDU - default is ASCII.
                        srv.setOperationMode(CService.MODE_PDU);
                        // Set the SMSC number (set to default).
                        srv.setSmscNumber("");
                        //     Print out GSM device info...
                        System.out.println("Mobile Device Information: ");
                        System.out.println("     Manufacturer : " + srv.getDeviceInfo().getManufacturer());
                        System.out.println("     Model : " + srv.getDeviceInfo().getModel());
                        System.out.println("     Serial No : " + srv.getDeviceInfo().getSerialNo());
                        System.out.println("     IMSI : " + srv.getDeviceInfo().getImsi());
                        System.out.println("     S/W Version : " + srv.getDeviceInfo().getSwVersion());
                        System.out.println("     Battery Level : " + srv.getDeviceInfo().getBatteryLevel() + "%");
                        System.out.println("     Signal Level : " + srv.getDeviceInfo().getSignalLevel() + "%");
                        //     Create a COutgoingMessage object and dispatch it.
                        //     *** Please update the phone number with one of your choice ***
    // String smsLengthTest="Hi"+"\nTesting is going on.Test for sending unlimited number of charecter.So you will get N number of SMS.Initially I trancate the whole string by 70 charecter.Later I will put it upto 90 charecter.Some chararecter should kept for header portion.I don't know the total number.It is just test.If you got the sms u should appreciate me...This is Ripon...I have written sms program";
    String smsLengthTest="Hi\n"+"This is Govindo";
    int mao=smsLengthTest.length();
    System.out.println("Length of sms :"+mao);
    String smsNo="9433314095";
    smsNo="+91"+smsNo;
    if(mao<70)
    COutgoingMessage msg = new COutgoingMessage(smsNo,smsLengthTest);
    //     Character set is 7bit by default - lets make it UNICODE :)
    //     We can do this, because we are in PDU mode (look at line 63). When in ASCII mode,
    //          this does not make ANY difference...
    msg.setMessageEncoding(CMessage.MESSAGE_ENCODING_UNICODE);
    if (srv.sendMessage(msg) == CService.ERR_OK) System.out.println("Message Sent!");
    else System.out.println("Message Failed!");
    else
    // COutgoingMessage msg = new COutgoingMessage(smsNo,smsLengthTest);
    // LinkedList messageList;
    // messageList = new LinkedList();
    // messageList.add(msg);
    // LinkedList maooo=new LinkedList();
    // maooo=srv.splitLargeMessages(messageList);
    int sizelength=0;
    int counter=0;
    sizelength=smsLengthTest.length();
    System.out.println("SMS length :"+sizelength);
    int smsCntr=sizelength/70;
    System.out.println("smsCntr :"+smsCntr);
    counter=smsCntr+1;
    int j=70;
    int k=0;
    try
    for(int i=0;i<smsCntr;i++)
    String test="";
    test=test+i;
    test=smsLengthTest.substring(k,j);
    System.out.println(test);
    System.out.println(test.length());
    COutgoingMessage msg = new COutgoingMessage(smsNo, test);
    System.out.println("hi this is suman" + smsNo);
    //     Character set is 7bit by default - lets make it UNICODE :)
    //     We can do this, because we are in PDU mode (look at line 63). When in ASCII mode,
    //          this does not make ANY difference...
    msg.setMessageEncoding(CMessage.MESSAGE_ENCODING_UNICODE);
    if (srv.sendMessage(msg) == CService.ERR_OK) System.out.println("Message Sent!");
    else System.out.println("Message Failed!");
    k=k+70;
    j=j+70;
    catch(Exception e)
    System.out.println("Error...1");
    e.printStackTrace();
    e.getMessage();
    String lastPortion=smsLengthTest.substring(k);
    System.out.println(lastPortion);
    COutgoingMessage msg = new COutgoingMessage(smsNo, lastPortion);
    //     Character set is 7bit by default - lets make it UNICODE :)
    //     We can do this, because we are in PDU mode (look at line 63). When in ASCII mode,
    //          this does not make ANY difference...
    msg.setMessageEncoding(CMessage.MESSAGE_ENCODING_UNICODE);
    if (srv.sendMessage(msg) == CService.ERR_OK) System.out.println("Message Sent!");
    else System.out.println("Message Failed!");
                        // Disconnect from GSM device.
                        srv.disconnect();
                   else System.out.println("Connection to mobile failed, error: " + status);
              catch (Exception e)
                   e.printStackTrace();
              System.exit(0);
    the error is:
    SendMessage(): sample application.
    Using jSMSEngine API 1.2.6 (B1)
    org.jsmsengine.CService@addbf1
    0
    -101
    Connection to mobile failed, error: -101
    please help me,its very urgent.

    come back in about 5 years, we may have time for you by then.
    In the meantime, how about contacting the people who wrote that library and asking them nicely for help (rather than trying to order people to drop whatever they're doing and jump through hoops to accommodate your every wish as you're doing here)?

  • Help required with SMS in Java

    Respected Group Members,
    How to develop SMS application in Java, what our requirement is that when I run this application it will fetch record from the database lets say "account balance" and than SMS it to some paticular mobile number , my questions are as follows:
    1) what API will I have to use for developing SMS applications in Java.
    2) what actually will be the flow of this application I mean where will it be hosted? will it connect to SMS Server in short please explain me the flow of this application i.e to which server will it first be connected and so on...
    3) any useful web site or resources?
    4) what in general is the flow of any SMS?
    5) any useful suggestions or any thing else than please guide me?
    I would be waiting for your precious replies , pleae reply as soon as possible.
    Thanking You,
    Taqi Raza.

    this has been asked time and again, so a few seconds in the search functionality should provide you with plenty of information.
    As you may be too stupid to type in your own search terms:
    http://www.altavista.com/web/results?itag=ody&q=SMS+in+Java&kgs=0&kls=0 yields a few thousand results (at least).

  • Displaying Picture in a Java APPLICATION please help!!

    I have been trying to write a method that Displays a .jpg file when called. However I have not gotten far, every book I have tell you how to display pictures in an applet but not an application. I did find some code that is supposed to be for an application, but It does not compile right. Any help would be apprecidated!
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class PictureIt{
    public void makeImage() {
    //***Image Output Stream
    String imgFile
    = "d:\\temp\\TestImage.jpeg";
    out = new FileOutputStream(imgFile);
    BufferedImage image = null;
    image = (BufferedImage)createImage
    (panelJpeg.size.width, panelJpeg.size.height);
    Graphics g = image.getGraphics();
    panelJpeg.paintAll(g);
    }

    Displaying Picture in a Java APPLICATION please help!!
    Hope this helps.There is going to be two classes compile seperatly first class is what does the drawing
    here it is
    import javax.swing.*;
    import java.awt.*;
    public class draww extends JPanel {
    Image ball;
    int width1 = 100;
    int height1 = 100;
    public draww() {
    super();
    Toolkit kit = Toolkit.getDefaultToolkit();
    ball = kit.getImage("pic1.gif");
    public void paintComponent(Graphics comp) {
    Graphics2D comp2D = (Graphics2D) comp;
    comp2D.drawImage(ball, 20, 20, width1, height1, this);
    sound class is the container JFrame here it is
    import javax.swing.*;
    import java.awt.*;
    public class drawing extends JFrame {
    public drawing() {
    super("draw");
    setSize(400,400);
    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    Container pane = getContentPane();
    draww d = new draww();
    pane.add(d);
    setContentPane(pane);
    setVisible(true);
    public static void main(String[] args) {
    drawing drawing1 = new drawing();
    PS Hope this helps and see you around

  • Is it possible to send SMS through java

    Hi all
    I m a student and as a part of my project I need to create an SMS server(SMS gateway). Can we send SMS through Java and if yes then send me the code for the same . Also on which GSM Modem will it Work , I've heard about Nokia GSM Modem N32. Kindly Guide me regarding the Same.
    Regards
    MoComp

    Hi all
    I m a student and as a part of my project I need to
    create an SMS server(SMS gateway). Can we send SMSSo YOU need to write it.
    through Java and if yes then send me the code for theIt's possible, as there are several commercial offerings out there.
    But as YOU need to write it it won't do for you to try and trick someone else into writing it so you can submit it as your own.
    same . Also on which GSM Modem will it Work , I've
    heard about Nokia GSM Modem N32. Kindly Guide me
    regarding the Same.All depends on how you implement it.
    A real server would have its own hardware and software to pipe directly into the network of a telco, and a contract with that telco to use their network to send messages.

  • SMS in JAVA

    Hi All
    Can any one please help me how can i send SMS using JSP/JAVA
    What are hardware/software requirements for the same
    Some Code/Site please
    Its Urgent!!!!!!!!!!!!!1
    Thanks
    Gagan

    The answer is yes for now... u see unlike the smtp , pop3, imap that was built into the javamail api..if u need to send sms using java u'll have to obtain a third party software which u'll integrate into your java application to enable u to send sms.
    same goes for fax also...there are few third party companies thta specialize in such..e.g simplewire (www.simplewire.com) rFax (www. .com) e.t.c all u need do for simplewire is download their sms sdk and add it to ur classpath...type ur java app to send sms.
    Note u'll have to pay in some cases ..becuase ur sms application connects to their wireless messaging server to send the sms for you..some charge a little for such or u can simply purchase the wireless massaging server.
    I hope i have cleared all these doubts about sms, fax.e.t.c
    Thanks All

  • Nokia 2700 Classsic Picture SMS Problem

    Hi
    I'm using Nokia 2700 Classic. I've a problem with Picture SMS. When I receive a Picture SMS and I wanna forward it as Picture SMS the cell phone make this sms as MMS and I can't send it as SMS. And my service provider charges for MMS. While in Picture SMS it contains equals to 3 text messages. & Nokia 2700 Classic creating a problem for me. Kindly solve it.
    CyBeNtIzEn

    Hi and welcome. The 2700 is supported by Nokia Suite. After sync of the SMS's to the suite, they can be exported from the suite as a .csv file to use in other programs.
    http://www.nokia.com/gb-en/support/product-archive/?action=productArchive&tid=1571712&searchTerm=Nok...
    It may also be possible to transfer the SMS's from the old phone to a new phone via Bluetooth (Connection -> Data Transfer -> Phone Change) but that option may not apply to the 2700 and your new phone.
    Please let us know how it goes.
    Hans

  • Cant able to send picture SMS in 5200

    Hi All,
    if any body know how to send the picture SMS from nokia 5200. it doesn't show the forward option while i receive any picture SMS.......

    i also have the same problem.

  • Want to send sms using java

    I am developing a stand alone application in java that contains sending sms to certain numbers.
    I want to send sms using java and my phone connected to my pc by usb cable(Not through Bluetooth).
    I am using Linux operating system (Arch linux).
    I tried a few libraries that uses the the online sms portals,but for some reasons i dont want to pay those sites.(just want it to be done using my simcard cause its economical).
    Help appreciated

    880667 wrote:
    I am developing a stand alone application in java that contains sending sms to certain numbers.
    I want to send sms using java and my phone connected to my pc by usb cable(Not through Bluetooth).
    I am using Linux operating system (Arch linux).
    I tried a few libraries that uses the the online sms portals,but for some reasons i dont want to pay those sites.(just want it to be done using my simcard cause its economical).
    Help appreciatede First thing you need to check: are you able to access other services my connecting you mobile by USB to machine (Line GPRS, calling). Because it requires the calling or SMS port access. And you said it is economical by sending SMS using mobile it depends. But most of the times, it is better to use the SMS service provider getway. They provide the details either http or FTP, we just need to put or message in the accepitng form, rest of the things are done by the service provide.

  • Can anybody tell me how to send/receive  the sms from java application

    Hi All,
    Can any body tell me, how to send/receive the sms from java application to mobile phones.
    I have installed the jsms engine and when i try to connect to the mobile device ,the jsms server is giving
    the following error.
    Cannot connect to GSM Device, error : -11

    Which jsms? Google finds several.
    Try the website where you downloaded it.

  • Can any body tell me, how to send/receive the sms from java application

    Hi All,
    Can any body tell me, how to send/receive the sms from java application to mobile phones.
    I have installed the jsms engine and when i try to connect to the mobile device ,the jsms server is giving
    the following error.
    Cannot connect to GSM Device, error : -11

    The best place to ask your question is at the JSMS website, forum or mailing list since this is no error that directly comes from a class belonging to the core Java classes.

  • How to send SMS from Java program?

    Hello,
    I want to know, how can I send SMS from Java program.I dont have any idea about SMS gateways. Can any one give me Sample code for sending the SMSs from Java Program.
    Thanks,
    -BR

    hi,
    refer javamail concepts
    http://www.google.co.in/search?q=javamail+simple+example&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a

  • Receive SMS using java

    Is there any posiblity to receive sms using java program?

    hi i am also have the same doubt ..did u get soluation for this means can u reply to me

  • Msgs in urdu or picture sms

    any way to view the msgs sent to me in urdu? coz i am in pakistan and ppl send me msgs in urdu but i just get question marks and cannot read them
    and any way to view picture sms? not mms! the picture sms!  .. i just get them blank and kant see the picture.. any way to deal with this problem?
    Post relates to: Treo 650 (Cingular)

    Myself, I've never seen an Urdu version of Palm OS before, sorry. 
    AT&T (the company that bought Cingular) doesn't use Picture SMS, only MMS to send pictures. 
    Emailing pictures from the phone is another way.
    WyreNut
    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

Maybe you are looking for

  • EJB 3.0 Preview - Security

    I was trying to use standard JDK annotations for securing EJB methods. At the time of compiling my EJB using weblogic.appc, I am getting the following error.Please let me know if anybody has a solution to this. Error processing annotations: java.lang

  • Logic Pro Crashing After Mavericks Update

    Hey Guys, I'm not having any luck opening Logic Pro 9. Here's the report: Process:         Logic Pro [619] Path:            /Applications/Logic Pro.app/Contents/MacOS/Logic Pro Identifier:      com.apple.logic.pro Version:         9.1.8 (1700.67) Bui

  • No automatic clearing after cancel invoice VF11

    Dear All i have problem with SAP system, when i cancel billing VF11, accounting doc is created but no automatic clearing with the billing document, so status is still not cleared either the billing canceled. can anyone help me? Regards Aditya

  • Sorting column headers in dynamic page

    Could anyone please let me know how to sort the column headings in a dynamic page

  • Double E-Mails

    I am receiving all of my emails in doubles. Is there anyone else having this issue?