Got this error when compiled java code in ubuntu.
![Got this error][1]
<error: illegal character: \'\\ufeff\'
As Jim Garrison pointed out, you probably have a Byte Order Marker (BOM) at the start of the file. Use an editor that can view all non-printable characters and remove it.
Alternatively, you can use sed to remove it:
sed '1s/^.//' infile >> outfile
In case your are working on Windows O.S. and use Eclipse (which don't have the functionality to remove the BOM from the file), just open the file in Notepad++ and in the encoding menu, select "UTF-8", then save the file.
Use another editor because it seems to be an eclipse UTF-8-BOM problem. Convert the UTF type UTF-8.
And also I note that ; First it doesn't work for me and I convert the type ANSI and after convert type to UTF-8 format. It can be a another alternative solution for you