Results 1 to 4 of 4
  1. #1
    iwax is offline Member
    Join Date
    Jan 2008
    Posts
    2
    Rep Power
    0

    Default illegal character: \65279

    Hello World,

    I am using Linux system. I tried to complile a tutorial first application (HelloWorldApp.java) from SunMicrosystems and as a result I got an eror message as indicated in the title line ... quite frustrating...

  2. #2
    scuffia's Avatar
    scuffia is offline Member
    Join Date
    Jan 2008
    Location
    Cagliari (Italy)
    Posts
    7
    Rep Power
    0

    Default

    ...Character 65279 (FEFF in hex) is a byte order mark, apparently inserted
    by your editor. For UTF-8, this serves no purpose, and it seems the Java
    compiler disallows it completely (as byte order marks are generally not
    used in Java)...
    [googled it]
    So it seems your text editor entered an illegal sequence of characters!

  3. #3
    iwax is offline Member
    Join Date
    Jan 2008
    Posts
    2
    Rep Power
    0

    Default

    Thanks for the reply!
    So, what kind of solution would you recommend? Which text editor would be the right one, not causing this problem?

  4. #4
    scuffia's Avatar
    scuffia is offline Member
    Join Date
    Jan 2008
    Location
    Cagliari (Italy)
    Posts
    7
    Rep Power
    0

    Default

    Actually I'm not really aware to Linux applications, but a colleague of mine said that "EMax" is a good text editor. Anyway try deleting characters at the beginning and the end of the file, maybe that "bad" character is over there.
    I windows I use Eclipse and sometimes, when I'm in a hurry, Context, but I really don't know if there is a linux versione (is very good, simple to use, a lot of highlithers and freeware).

Similar Threads

  1. reading text character by character
    By bugger in forum New To Java
    Replies: 2
    Last Post: 11-09-2007, 08:54 PM
  2. Illegal Start of an Expression
    By David55 in forum CLDC and MIDP
    Replies: 8
    Last Post: 11-02-2007, 09:11 PM
  3. Replies: 9
    Last Post: 08-08-2007, 07:16 PM
  4. Illegal start of expression
    By gabriel in forum New To Java
    Replies: 2
    Last Post: 08-01-2007, 05:09 PM
  5. Illegal Start of an Expression
    By David55 in forum CLDC and MIDP
    Replies: 0
    Last Post: 04-20-2007, 05:59 AM

Posting Permissions

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