I am encountering an issue compiling a source file with a special character in the class name. The class file compiles fine in the Eclipse IDE, but not from javac. I belie
One solution is to list the file name of each compilation unit in a separate file, say files
, and pass @files
as a command-line argument to javac
. Otherwise, you will have to set the locale of your shell, so that it is using the correct character encoding.
Have you tried using -encoding UTF8
or -encoding UTF16LE
(Little Endian) or -encoding UTF16BE
(big endian)? (The usage of LE or BE depends on the system you are using -- Windows is LE from what I remember.)