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

    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 Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,188
    Rep Power
    19

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, 02:35 PM
  3. Help file for Java commands?
    By tyang in forum New To Java
    Replies: 2
    Last Post: 01-31-2010, 05:09 AM
  4. Low-level java commands
    By artemff in forum New To Java
    Replies: 8
    Last Post: 01-01-2010, 06:23 AM
  5. Java Robot commands not working
    By CoolLove in forum Java Applets
    Replies: 2
    Last Post: 01-13-2009, 02: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
  •