Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2010
    Rep Power

    Exclamation At commands in java

    I need help in my codes.Can somebody help me solve/explain the error?

    5.public class SimpleWrite {
    6.static Enumeration portList;
    7.static CommPortIdentifier portId;
    8.static String commands[] ="AT+CMGS=1","AT+CMGS=\"9292912345\","Hello there";
    static byte[] newline[]={(byte)13,(byte)10};
    static SerialPort serialPort;
    static OutputStream outputStream;

    The error is <identifier>expected and unlcosed string literal in line 8.

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Madgaon, Goa, India
    Rep Power

Similar Threads

  1. Run Unix commands from Java
    By yahyaaa in forum New To Java
    Replies: 13
    Last Post: 06-17-2010, 11:50 PM
  2. Need Help to Execute the commands from Java Program
    By Anjaneyulu in forum Advanced Java
    Replies: 7
    Last Post: 02-24-2010, 03:35 PM
  3. Help file for Java commands?
    By tyang in forum New To Java
    Replies: 2
    Last Post: 01-31-2010, 06:09 AM
  4. Low-level java commands
    By artemff in forum New To Java
    Replies: 8
    Last Post: 01-01-2010, 07:23 AM
  5. Java Robot commands not working
    By CoolLove in forum Java Applets
    Replies: 2
    Last Post: 01-13-2009, 03:58 PM

Posting Permissions

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