|
From: Tomas G. <to...@pr...> - 2003-08-29 11:14:02
|
And here is what I think looks like the best option, found on sun's
developer forum:
-----
I've got the same problem too. I've sort of tracked it down to what the
compiler thinks is the file encoding.
If you your source files are straight up ascii/ansi files and not
UTF-8/16/Unicode, add the "-encoding ascii" argument to the command line.
It appears to fix the problem.
This problem appears on Sun JDKs 1.3.1_06 and 1.3.1_05 and IBM's JDK 1.3.1.
Someone should submit a bug, but I don't know to who: RedHat or Solaris?
Paul
-----
You can specify encoding in the build.xml file. There is a line for the
javac
<javac srcdir="${javasrc}" extdirs="${lib}" destdir="${build}" debug="on">
which should be changed to:
<javac srcdir="${javasrc}" extdirs="${lib}" destdir="${build}"
debug="on" encoding="ascii">
Regards,
Tomas
Tomas Gustavsson wrote:
> Searching for 'sun.io.MalformedInputException' reveals that it's
> probably some character encoding problem with the java compiler.
> What locale are you using in the system?
>
> Try to set java compiler options to use a different encoding:
> javac -encoding ISO-8859-1
> Or changing to another locale.
>
> I think you can set compiler options for ANT in environment variables.
>
> (another tip, use regular JBoss instead of JBoss-Tomcat)
>
> Regards,
> Tomas
|